home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PRINTER
/
MEXLAS.ARJ
/
MANUAL.ASC
< prev
next >
Wrap
Text File
|
1991-09-01
|
174KB
|
7,723 lines
Texas Associated Software
Laser Printer Library
for Clipper Summer '87 and Clipper 5.01
=================================
=== SHAREWARE EVALUATION COPY ===
=================================
Release 1.11
Texas Associated Software
523 La Cresta Drive
Red Oak, TX 75154
(214) 617-5260
HP LaserJet is a registered trademark of Hewlett-Packard
Copyright 1991 - Texas Associated Software - Red Oak, TX 1
Table of contents
-----------------
Licensing Terms and Conditions . . . . . . . . . . . . . . . 6
Disclaimer . . . . . . . . . . . . . . . . . . . . . . . . . 7
Introduction . . . . . . . . . . . . . . . . . . . . . . . . 8
Clipper Summer '87 & 5.01 Support . . . . . . . . . . . . . . 8
Linking information . . . . . . . . . . . . . . . . . . . . . 8
Other Modules . . . . . . . . . . . . . . . . . . . . . . . . 8
Demonstration program . . . . . . . . . . . . . . . . . . . . 9
Syntax Conventions . . . . . . . . . . . . . . . . . . . . . 10
Font Designation . . . . . . . . . . . . . . . . . . . . . . 10
TX3OF9BC() . . . . . . . . . . . . . . . . . . . . . . . . . 11
TXAFS36A() . . . . . . . . . . . . . . . . . . . . . . . . . 12
TXBOLD() . . . . . . . . . . . . . . . . . . . . . . . . . . 13
TXCLEAR() . . . . . . . . . . . . . . . . . . . . . . . . . . 14
TXCLRHMRG() . . . . . . . . . . . . . . . . . . . . . . . . . 15
TXCNTLFONT() . . . . . . . . . . . . . . . . . . . . . . . . 16
TXCOLBOX() . . . . . . . . . . . . . . . . . . . . . . . . . 17
TXCOLHLINE() . . . . . . . . . . . . . . . . . . . . . . . . 19
TXCOLPRINT() . . . . . . . . . . . . . . . . . . . . . . . . 20
TXCOLVLINE() . . . . . . . . . . . . . . . . . . . . . . . . 21
TXCOPIES() . . . . . . . . . . . . . . . . . . . . . . . . . 22
TXCOUR10BR() . . . . . . . . . . . . . . . . . . . . . . . . 23
TXCOUR10IR() . . . . . . . . . . . . . . . . . . . . . . . . 24
TXCOUR10R() . . . . . . . . . . . . . . . . . . . . . . . . . 25
TXCOUR12BR() . . . . . . . . . . . . . . . . . . . . . . . . 26
TXCOUR12IR() . . . . . . . . . . . . . . . . . . . . . . . . 27
TXCOUR12R() . . . . . . . . . . . . . . . . . . . . . . . . . 28
TXDLFONT() . . . . . . . . . . . . . . . . . . . . . . . . . 29
TXDOTBOX() . . . . . . . . . . . . . . . . . . . . . . . . . 30
TXDOTHLINE() . . . . . . . . . . . . . . . . . . . . . . . . 32
TXDOTPRINT() . . . . . . . . . . . . . . . . . . . . . . . . 33
Copyright 1991 - Texas Associated Software - Red Oak, TX 2
TXDOTVLINE() . . . . . . . . . . . . . . . . . . . . . . . . 34
TXFONTBOLD() . . . . . . . . . . . . . . . . . . . . . . . . 35
TXFORMFEED() . . . . . . . . . . . . . . . . . . . . . . . . 36
TXGRAPHIC() . . . . . . . . . . . . . . . . . . . . . . . . . 37
TXGRAYBAR() . . . . . . . . . . . . . . . . . . . . . . . . . 38
TXHCFA15() . . . . . . . . . . . . . . . . . . . . . . . . . 39
TXHL10BR() . . . . . . . . . . . . . . . . . . . . . . . . . 40
TXHL10IR() . . . . . . . . . . . . . . . . . . . . . . . . . 41
TXHL10R() . . . . . . . . . . . . . . . . . . . . . . . . . . 42
TXHL12BR() . . . . . . . . . . . . . . . . . . . . . . . . . 43
TXHL12IR() . . . . . . . . . . . . . . . . . . . . . . . . . 44
TXHL12R() . . . . . . . . . . . . . . . . . . . . . . . . . . 45
TXHL12SBA() . . . . . . . . . . . . . . . . . . . . . . . . . 46
TXHL14IR() . . . . . . . . . . . . . . . . . . . . . . . . . 47
TXHL14SBA() . . . . . . . . . . . . . . . . . . . . . . . . . 48
TXHL6R() . . . . . . . . . . . . . . . . . . . . . . . . . . 49
TXHL8R() . . . . . . . . . . . . . . . . . . . . . . . . . . 50
TXHL8SBA() . . . . . . . . . . . . . . . . . . . . . . . . . 51
TXINIT() . . . . . . . . . . . . . . . . . . . . . . . . . . 52
TXLG12BR() . . . . . . . . . . . . . . . . . . . . . . . . . 53
TXLG12IR() . . . . . . . . . . . . . . . . . . . . . . . . . 54
TXLG12R() . . . . . . . . . . . . . . . . . . . . . . . . . . 55
TXLG14A() . . . . . . . . . . . . . . . . . . . . . . . . . . 56
TXLG14LG() . . . . . . . . . . . . . . . . . . . . . . . . . 57
TXLG96R() . . . . . . . . . . . . . . . . . . . . . . . . . . 58
TXLMARGIN() . . . . . . . . . . . . . . . . . . . . . . . . . 59
TXLNPRT85() . . . . . . . . . . . . . . . . . . . . . . . . . 60
TXMACBEGIN() . . . . . . . . . . . . . . . . . . . . . . . . 61
TXMACCALL() . . . . . . . . . . . . . . . . . . . . . . . . . 62
TXMACDEL() . . . . . . . . . . . . . . . . . . . . . . . . . 63
TXMACEND() . . . . . . . . . . . . . . . . . . . . . . . . . 64
TXMACEXEC() . . . . . . . . . . . . . . . . . . . . . . . . . 65
Copyright 1991 - Texas Associated Software - Red Oak, TX 3
TXORIENT() . . . . . . . . . . . . . . . . . . . . . . . . . 66
TXOVERLAY() . . . . . . . . . . . . . . . . . . . . . . . . . 67
TXPAGESIZE() . . . . . . . . . . . . . . . . . . . . . . . . 68
TXPATTERNBAR() . . . . . . . . . . . . . . . . . . . . . . . 69
TXPE10BLG() . . . . . . . . . . . . . . . . . . . . . . . . . 70
TXPE10BR() . . . . . . . . . . . . . . . . . . . . . . . . . 71
TXPE10ILG() . . . . . . . . . . . . . . . . . . . . . . . . . 72
TXPE10IR() . . . . . . . . . . . . . . . . . . . . . . . . . 73
TXPE10LG() . . . . . . . . . . . . . . . . . . . . . . . . . 74
TXPE10MA() . . . . . . . . . . . . . . . . . . . . . . . . . 75
TXPE10R() . . . . . . . . . . . . . . . . . . . . . . . . . . 76
TXPE7LG() . . . . . . . . . . . . . . . . . . . . . . . . . . 77
TXPE7MA() . . . . . . . . . . . . . . . . . . . . . . . . . . 78
TXPE7R() . . . . . . . . . . . . . . . . . . . . . . . . . . 79
TXPGLENGTH() . . . . . . . . . . . . . . . . . . . . . . . . 80
TXPOSTNET() . . . . . . . . . . . . . . . . . . . . . . . . . 81
TXPRS14BA() . . . . . . . . . . . . . . . . . . . . . . . . . 82
TXPRS14BLG() . . . . . . . . . . . . . . . . . . . . . . . . 83
TXPRS16BA() . . . . . . . . . . . . . . . . . . . . . . . . . 84
TXPRS16BLG() . . . . . . . . . . . . . . . . . . . . . . . . 85
TXPRS18BA() . . . . . . . . . . . . . . . . . . . . . . . . . 86
TXPRS18BLG() . . . . . . . . . . . . . . . . . . . . . . . . 87
TXPSOURCE() . . . . . . . . . . . . . . . . . . . . . . . . . 88
TXRESET() . . . . . . . . . . . . . . . . . . . . . . . . . . 89
TXRMARGIN() . . . . . . . . . . . . . . . . . . . . . . . . . 90
TXSCALABLE() . . . . . . . . . . . . . . . . . . . . . . . . 91
TXSENDSTR() . . . . . . . . . . . . . . . . . . . . . . . . . 92
TXSETLPI() . . . . . . . . . . . . . . . . . . . . . . . . . 93
TXSETPFONT() . . . . . . . . . . . . . . . . . . . . . . . . 94
TXSETSFONT() . . . . . . . . . . . . . . . . . . . . . . . . 95
TXSUB() . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
TXSUPER() . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Copyright 1991 - Texas Associated Software - Red Oak, TX 4
TXTAX12BLD() . . . . . . . . . . . . . . . . . . . . . . . . 98
TXTEXTLEN() . . . . . . . . . . . . . . . . . . . . . . . . . 99
TXTMARGIN() . . . . . . . . . . . . . . . . . . . . . . . . . 100
TXTR10BR() . . . . . . . . . . . . . . . . . . . . . . . . . 101
TXTR10IR() . . . . . . . . . . . . . . . . . . . . . . . . . 102
TXTR10MA() . . . . . . . . . . . . . . . . . . . . . . . . . 103
TXTR10R() . . . . . . . . . . . . . . . . . . . . . . . . . . 104
TXTR12BR() . . . . . . . . . . . . . . . . . . . . . . . . . 105
TXTR12IR() . . . . . . . . . . . . . . . . . . . . . . . . . 106
TXTR12R() . . . . . . . . . . . . . . . . . . . . . . . . . . 107
TXTR14BR() . . . . . . . . . . . . . . . . . . . . . . . . . 108
TXTR8MA() . . . . . . . . . . . . . . . . . . . . . . . . . . 109
TXTR8R() . . . . . . . . . . . . . . . . . . . . . . . . . . 110
TXUNDERLINE() . . . . . . . . . . . . . . . . . . . . . . . . 111
TXVPRINT() . . . . . . . . . . . . . . . . . . . . . . . . . 112
TXXBOX() . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Bugs . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Registration Information . . . . . . . . . . . . . . . . . . 115
HP LaserJet Internal Fonts . . . . . . . . . . . . . . . . . 116
Registration Form . . . . . . . . . . . . . . . . . . . . . 117
Copyright 1991 - Texas Associated Software - Red Oak, TX 5
Licensing Terms and Conditions
------------------------------
Copyright (c) 1991 by Texas Associated Software
All Rights Reserved
The Texas Associated Software Laser Printer Library (hereinafter
called "The Library") may only be used and distributed under the
following conditions:
1) You may use the Library for a period of up to thirty days to
determine its suitability for your needs. If you continue to
use the Library (or any program with the Library linked into
it) after a period of thirty days you MUST register your
copy by completing the enclosed registration form and
sending it along with the appropriate payment to the address
listed on the form. A registration form is included at the
end of this documentation.
2) When you register your copy of Library, you will receive:
a) The latest release of The Library
b) A royalty free run-time license to use the Library in
any of your applications.
c) Upgrades of future releases of The Library
3) You may distribute the Library provided that no fee is
charged, except for a nominal "diskette" fee or "connect
time" charges. In any event, the entire fee shall not exceed
$10.00.
4) You may not use the Library in with any commercial
application without registering your copy.
5) You may not distribute the Library in modified form.
6) If you distribute the Library, it must be in the original
archive form as released by the author. You may not add any
files, archive comments or archive it using another archive
utility.
Copyright 1991 - Texas Associated Software - Red Oak, TX 6
Disclaimer
----------
Because The Texas Associated Software LaserJet Library
(hereinafter called "The Library") is distributed as "SHAREWARE",
there is absolutely no warranty, to the extent permitted by
applicable state law.
Except when otherwise stated in writing, Texas Associated
Software, Red Oak, Texas and/or other parties provide the Library
"AS IS" without warranty of any kind, either expressed or
implied, including, but not limited to, the implied warranties of
merchantability and fitness for a particular purpose. The entire
risk as to the quality and performance of the Library is with
you.
Should the Library prove defective, you assume all the cost of
all necessary remedies, repair or correction.
In no event shall Texas Associated Software be responsible in any
way for the behavior of modified versions of the Library. In no
event, unless required by applicable state law, will Texas
Associated Software or any other party who may distribute the
Library as permitted above, be liable to you for damages,
including any lost profits, lost monies, or other special,
incidental or consequential damages arising out of the use or
inability to use (including but not limited to loss of data or
data being rendered inaccurate or losses sustained by third
parties or a failure of the program to operate with any other
program) the Library, even if you have been advised of the
possibility of such damages, or any claim by any other party.
Copyright 1991 - Texas Associated Software - Red Oak, TX 7
Introduction
------------
Welcome to the Texas Associated Software LaserJet Library. Before
you begin using the Library, be sure to print and read the
"READ.ME" file on the distribution diskette. This file contains
the latest information on the Library as well as a history of
fixes. If there have been any last minute changes or
modifications that did not make it into the manual, you will find
them in this file.
In 1988 Texas Associated Software began developing business
applications that required special output that could only be
printed on an HP LaserJet. At the time there were no special
libraries for the LaserJet and Clipper. The output was routed to
other applications such as Lotus 123/Allways or more recently Dan
Bricklin's PageGarden. These functions were developed out of
necessity. They are now offered to you with the hope you find
them as useful as have we.
All the functions contained in this library are fully-functional
and ready-to-use.
When you register your copy of the Library, you will receive the
latest version of the Library, Norton Guides Reference Guide and
documentation.
Clipper Summer '87 & 5.01 Support
--------------------------------
Two versions of this library are included on the distribution
diskette. TEXLASER.LIB is for Clipper Summer '87 while
TEXLASR5.LIB is for Clipper 5.01.
Linking information
-------------------
TEXLASER.LIB (Summer '87) and TEXLASR5.LIB (Clipper 5.01) are
written in "Pure" Clipper code and can be linked anywhere before
EXTEND.LIB. The Library has been tested with all available
dynamic overlay linkers and is fully overlayable.
Other Modules
-------------
TEXLASER.LIB and TEXLASR%.LIB use an "ASM" routine "LPTSTAT" to
check the status of the printer. It is provided in object form
and should be placed with your other object modules. See
Nantucket News Vol. 4, No. 4, Jan/Feb 1990 for further details.
This module is invaluable when using the faster 286 and 386
machines.
Copyright 1991 - Texas Associated Software - Red Oak, TX 8
Demonstration program
---------------------
It is recommended you compile and link the enclosed TEXLSDMO.PRG
to see the some of the functions in this Library in use. The
examples below are assumed and you can change then to fit your
environment.
To compile and link with Clipper Summer '87 ...
\CLIPPER\CLIPPER TEXLSDMO
\CLIPPER\PLINK86
=> fi texlsdmo
=> fi lptstat
=> lib texlaser
=> lib clipper
=> lib extend
=>^z
To compile and link with Clipper 5.01 ...
\CLIPPER5\BIN\CLIPPER TEXLSDMO
\CLIPPER5\BIN\RTLINK
=> fi texlsdmo
=> fi lptstat
=> lib texlasr5
=>^z
When running the demo, do not select "Print Scalable Font"
example unless you have an HP LaserJet III or higher printer. Use
with any other printer will have unpredictable results.
***** Important ***** Important ***** Important *****
If you are not getting desired results, be sure to check the
return code from the function. The examples in this manual do not
show the checking of the return code on all examples. This was
omitted for brevity only.
Copyright 1991 - Texas Associated Software - Red Oak, TX 9
Syntax Conventions
------------------
This documentation uses the following syntax conventions:
<exp?> Expression of specific data-type where ? equals C for
character, D for date, N for numeric, M for memo, L for
logical or any type if omitted.
<memvar> Name of a memory variable
[] Optional syntax.
Font Designation
----------------
The names for functions that set fonts are referred to as an
abbreviation of the font name, the point size of the font and
symbol set. This enables us to use a consistent naming convention
for fixed and proportional fonts. This was changed from an
earlier version of the Library.
Example : TX HL 14 I R
Symbol Set (Roman-8)
Type Style (Italic)
Point Size
Font Typeface (Helvetica)
Library
Copyright 1991 - Texas Associated Software - Red Oak, TX 10
TX3OF9BC()
Syntax: TX3OF9BC(<expN1>, <expN2>, <expC1>, <expN3>)
Purpose: Function to print text <expC1> using row <expN1>
and column <expN2> as coordinates and row as
height <expN3>.
Arguments: <expN1> is the upper column coordinate of the
barcodes.
<expN2> is the upper row coordinate of the
barcodes.
<expC1> is the text string to generate as
barcodes.
<expN3> is the row height of the barcodes
Returns: .T. Successful
.F. Unsuccessful
Usage: TX3OF9BC() is useful anytime you need to generate
barcodes using columns and rows as coordinates.
See Bar Code Demo. 3-of-9 Bar Code Generator
allows 44 characters. The letters must be
capitalized. If you do not capitalize your text,
TX3OF9BC() will capitalize it for you. The 44
allowable characters are: "A" - "Z", "0" - "9", "
" (space), "-", ".", "*", "$", "/", "+", "%". 3 of
9 Bar Codes require a beginning and ending "*". Do
not add these as this function will add them for
you.
Copyright 1991 - Texas Associated Software - Red Oak, TX 11
TXAFS36A()
Syntax: TXAFS36A()
Purpose: Sets the font to AFS 3.6 point 27.28 cpi Ascii
Symbol Set.
Pitch Point Description
27.28 3.60 AFS Medium Ascii
Argument: None
Returns: 0 Successful
Usage: TXAFS36A() is used anytime you need to change the
font to AFS 3.6 point Ascii. AFS 3.6 point Ascii
is not one of the internal fonts for any HP
LaserJet Printer. If you have a cartridge with AFS
3.6 point Ascii on it, you can use this function.
If you select this font and it is not available to
your printer, the HP LaserJet will set the font
that most closely matches the selected font's
characteristics. You do not get a return code
indicating the font was not available.
Example: TXAFS36A()
Copyright 1991 - Texas Associated Software - Red Oak, TX 12
TXBOLD()
Syntax: TXBOLD(<expC>)
Purpose: Prints a text string in a simulated bold type.
Argument: <expC> is the text string or character memory
variable to be printed boldface.
Returns: Bold string
Usage: TXBOLD() is useful anytime you need to print your
text bold and you do not have a bold font
available. It will print the bold text in the same
font as your normal text line. Some internal
fonts, soft fonts or cartridges do not have
boldface option. TXBOLD() will print in a
simulated bold that is easy to use.
Do not use with TXCOLPRINT() or TXDOTPRINT()
functions.
Example: @ 10, 10 say "Send money "+TXBOLD("NOW!")
See Also: TXFONTBOLD, TXSUB(), TXSUPER(), TXCOLPRINT(),
TXDOTPRINT()
Copyright 1991 - Texas Associated Software - Red Oak, TX 13
TXCLEAR()
Syntax: TXCLEAR()
Purpose: Releases the variables the Library requires for
its functions to operate correctly.
Argument: none
Returns: 0 Successful
1 not successful
Usage: TXCLEAR() is used at the end of any printing
procedure.
Example: * Initialize variables
TXINIT()
(Print routine)
* Release variables
TXCLEAR()
See Also: TXINIT()
Copyright 1991 - Texas Associated Software - Red Oak, TX 14
TXCLRHMRG()
Syntax: TXCLRHMRG()
Purpose: Clears the horizontal margins of the logical page.
Argument: none
Returns: 0 Successful
1 not successful
Usage: TXCLRHMRG() is used to reset the left and right
margins. The left margin is set to the left edge
of the logical page - column 0 - and the right
margin is set to the right edge of the logical
page.
Example: * Clear left and right margins
_ret_code = TXCLRHMRG()
See Also: TXLMARGIN(), TXRMARGIN()
Copyright 1991 - Texas Associated Software - Red Oak, TX 15
TXCNTLFONT()
Syntax: TXCNTLFONT()
Purpose: Provides a way to control soft fonts.
Argument: 0 Delete all soft fonts
1 Delete all temporary soft fonts
2 Delete last ID specified soft font
4 Make last soft font specified temporary
5 Make last soft font specified permanent
Returns: 0 Successful
Usage: TXCNTLFONT() is used anytime you need to control
the soft fonts you previously downloaded.
Example: * delete all soft fonts
TXCNTLFONT(0)
See Also: TXSETPFONT(), TXSETSFONT(), TXRESET(), TXDLFONT()
Copyright 1991 - Texas Associated Software - Red Oak, TX 16
TXCOLBOX()
Syntax: TXCOLBOX(<expN1>, <expN2>, <expN3>, <expN4>,
[<expN5>], [<expN6>], [<expN7>])
Purpose: Prints a single or double lined box using columns
and rows as coordinates. The border thickness is
set by <expN7>. The box may be shaded using a
graybar.
Arguments: <expN1> is the upper row coordinate of the box.
<expN2> is the upper column coordinate of the box.
<expN3> is the column width of the box
<expN4> is the row height of the box
<expN5> is the border option.
1 = single line border
2 = double line border
<expN6> is the percent of shading to fill the box.
If omitted, the box will not be shaded. Valid
values are 1 - 100.
<expN7> is the thickness of the border in dots. Do
not use with double line border.
Returns: 0 Successful
1 Invalid number of parameters
2 Only 1 parameter passed
3 Only 2 parameters passed
4 Only 3 parameters passed
5 <expN1> row parameter not numeric
6 <expN2> column parameter not numeric
7 <expN3> width parameter not numeric
8 <expN4> height parameter not numeric
9 <expN5> border parameter not numeric
10 <expN6> shading percent not numeric
11 <expN6> shading percent > 100
12 <expN7> border weight parameter not numeric
Usage: TXCOLBOX() is useful anytime you need to print a
box using columns and rows as coordinates. See
Invoice Demo. When used with TXCOLPRINT(), it will
provide an accurate border.
Copyright 1991 - Texas Associated Software - Red Oak, TX 17
Example: * To print a border on page
_ret_code = txcolbox(01, 01, 80, 60)
IF _ret_code != 0
set console on
set print off
set device to screen
?? "Error drawing ColBox "+str(_ret_code)
Return
ENDIF
(Your Print Routine)
See Also: TXDOTBOX(), TXGRAYBAR(), TXCOLPRINT()
Printers: Do not use with the original HP LaserJet
Copyright 1991 - Texas Associated Software - Red Oak, TX 18
TXCOLHLINE()
Syntax: TXCOLHLINE(<expN1>, <expN2>, <expN3>, <expN4>)
Purpose: Prints a horizontal line at the designated row and
column coordinates with a width <expN3> column and
<expN4> dots high. TXCOLHLINE() allows you to draw
a horizontal line at any row and column on the
page.
Arguments: <expN1> is the row coordinate of line to be drawn.
<expN2> is the column coordinate of line to be
drawn.
<expN3> is the width of your line in columns.
<expN4> is the weight of the line. (Number of dots
wide). 300 dots equal 1 inch.
Returns: 0 Successful
1 Invalid number of parameters
2 <expN1> row parameter not numeric
3 <expN2> column parameter not numeric
4 <expN3> width parameter not numeric
5 <expN4> weight parameter not numeric
Usage: TXCOLHLINE() is useful anytime you need to draw a
horizontal line. TXCOLHLINE() is not as exact as
TXDOTHLINE() but does not require calculating your
exact print position by dots.
Example: * To print grid on a page.
for i = 1 to 80 step 2
TXCOLVLINE( i, 01, 60, 1)
next
for i = 1 to 60
TXCOLHLINE(01, i, 80, 1)
next
See Also: TXDOTHLINE(), TXDOTVLINE(), TXCOLVLINE()
Copyright 1991 - Texas Associated Software - Red Oak, TX 19
TXCOLPRINT()
Syntax: TXCOLPRINT(<expN1>, <expN2>, <expL>, <expC1>)
Purpose: Prints a string at the designated row and column
coordinates. TXCOLPRINT() allows you to construct
your page layout without ejecting the current
page.
Arguments: <expN1> is the upper row coordinate of text to be
printed.
<expN2> is the upper column coordinate of text to
be printed.
<expL> allows you to print entire text in
simulated boldface.
<expC1> is the string to be printed.
Returns: 0 Successful
1 Invalid number of parameters
2 <expN1> row parameter not numeric
3 <expN2> column parameter not numeric
4 <expL> bold parameter not logical
5 <expC1> text string not character
Usage: TXCOLPRINT() is useful anytime you need to print a
text string using columns and rows as coordinates.
<expL> will print the text string in a simulated
boldface.
Example: * To print text in normal print
_text = "Texas Associated Software loves
LaserJets"
TXCOLPRINT(01, 01, .f., _text)
* To print text in bold print
TXCOLPRINT(01, 01, .t., _text)
See Also: TXDOTPRINT(), TXCOLBOX(), TXDOTBOX()
Copyright 1991 - Texas Associated Software - Red Oak, TX 20
TXCOLVLINE()
Syntax: TXCOLVLINE(<expN1>, <expN2>, <expN3>, <expN4>)
Purpose: Prints a vertical line at the designated row and
column coordinates with a height of <expN3> rows
and <expN4> dots wide. TXCOLVLINE() allows you to
draw a vertical line at any row and column on the
page.
Arguments: <expN1> is the row coordinate of text to be
printed.
<expN2> is the column coordinate of text to be
printed.
<expN3> is the height of your line in rows.
<expN4> is the weight of the line. (Number of dots
wide). 300 dots equal 1 inch.
Returns: 0 Successful
1 Invalid number of parameters
2 <expN1> row parameter not numeric
3 <expN2> column parameter not numeric
4 <expN3> length parameter not numeric
5 <expN4> weight parameter not numeric
Usage: TXCOLVLINE() is useful anytime you need to draw an
vertical line. TXCOLVLINE() is not as exact as
TXDOTVLINE() but does not require calculating your
exact print position by dots.
Example: * To print grid on a page.
for i = 1 to 80 step 2
TXCOLVLINE( i, 01, 60, 1)
next
for i = 1 to 60
TXCOLHLINE(01, i, 80, 1)
next
See Also: TXDOTHLINE(), TXDOTVLINE(), TXCOLHLINE()
Copyright 1991 - Texas Associated Software - Red Oak, TX 21
TXCOPIES()
Syntax: TXCOPIES(<expN>)
Purpose: Sets the number of copies per page to print.
Argument: <expN> is the number of copies per page. The
default setting is 1. Valid values for <expN> are
1 to 99.
Returns: 0 Successful
1 <expN> not numeric
2 Invalid value for <expN>
Usage: TXCOPIES() is useful anytime you need to change
the number of copies per printed page. You can use
it in a variable to allow user to select number of
copies to print. The pages are not collated as
they print.
Example: TXCOPIES(3)
See Also: TXPGLENGTH(), TXSETLPI()
Copyright 1991 - Texas Associated Software - Red Oak, TX 22
TXCOUR10BR()
Syntax: TXCOUR10BR()
Purpose: Sets the font to Courier 10 point Bold Roman-8
Symbol Set 12 cpi.
Pitch Point Description
12.00 10.00 Courier Bold Roman-8
Argument: None
Returns: 0 Successful
Usage: TXCOUR10BR() is used anytime you need to change
the font to Courier 10 point Bold Roman-8. Courier
10 point Bold Roman-8 is not an internal font for
the original LaserJet, LaserJet 500 and LaserJet
Plus. If you have a cartridge with Courier 10
point Bold Roman-8 on it, you can use this
function. If you select this font and it is not
available to your printer, the HP LaserJet will
set the font that most closely matches the
selected font's characteristics. You do not get a
return code indicating the font was not available.
Example: TXCOUR10BR()
Copyright 1991 - Texas Associated Software - Red Oak, TX 23
TXCOUR10IR()
Syntax: TXCOUR10IR()
Purpose: Sets the font to Courier 10 point Italic Roman-8
Symbol Set 12 cpi.
Pitch Point Description
12.00 10.00 Courier Medium Italic Roman-8
Argument: None
Returns: 0 Successful
Usage: TXCOUR10IR() is used anytime you need to change
the font to Courier 10 point Italic Roman-8.
Courier 10 point Italic Roman-8 is not an internal
font for the original LaserJet, LaserJet 500,
LaserJet Plus and LaserJet II. If you have a
cartridge with Courier 10 point Italic Roman-8 on
it, you can use this function. If you select this
font and it is not available to your printer, the
HP LaserJet will set the font that most closely
matches the selected font's characteristics. You
do not get a return code indicating the font was
not available.
Example: TXCOUR10IR()
Copyright 1991 - Texas Associated Software - Red Oak, TX 24
TXCOUR10R()
Syntax: TXCOUR10R()
Purpose: Sets the font to Courier 10 point Roman-8 Symbol
Set 12 cpi.
Pitch Point Description
12.00 10.00 Courier Medium Roman-8
Argument: None
Returns: 0 Successful
Usage: TXCOUR10R() is used anytime you need to change the
font to Courier 10 point Roman-8. Courier 10 point
Roman-8 is not an internal for the original
LaserJet, LaserJet 500, LaserJet Plus and LaserJet
II. If you have a cartridge with Courier 10 point
Roman-8 on it, you can use this function. If you
select this font and it is not available to your
printer, the HP LaserJet will set the font that
most closely matches the selected font's
characteristics. You do not get a return code
indicating the font was not available.
Example: TXCOUR10R()
Copyright 1991 - Texas Associated Software - Red Oak, TX 25
TXCOUR12BR()
Syntax: TXCOUR12BR()
Purpose: Sets the font to Courier 12 point Bold Roman-8
Symbol Set 10 cpi.
Pitch Point Description
10.00 12.00 Courier Bold Roman-8
Argument: None
Returns: 0 Successful
Usage: TXCOUR12BR() is used anytime you need to change
the font to Courier 12 point Bold Roman-8. Courier
12 point Bold Roman-8 is not an internal for the
original LaserJet, LaserJet 500 and LaserJet Plus.
If you have a cartridge with Courier 12 point Bold
Roman-8 on it, you can use this function. If you
select this font and it is not available to your
printer, the HP LaserJet will set the font that
most closely matches the selected font's
characteristics. You do not get a return code
indicating the font was not available.
Example: TXCOUR12BR()
Copyright 1991 - Texas Associated Software - Red Oak, TX 26
TXCOUR12IR()
Syntax: TXCOUR12IR()
Purpose: Sets the font to Courier 12 point Italic Roman-8
Symbol Set 10 cpi.
Pitch Point Description
10.00 12.00 Courier Medium Italic Roman-8
Argument: None
Returns: 0 Successful
Usage: TXCOUR12IR() is used anytime you need to change
the font to Courier 12 point Italic Roman-8.
Courier 12 point Italic Roman-8 is not an internal
for the original LaserJet, LaserJet 500, LaserJet
Plus and LaserJet II. If you have a cartridge with
Courier 12 point Italic Roman-8 on it, you can use
this function. If you select this font and it is
not available to your printer, the HP LaserJet
will set the font that most closely matches the
selected font's characteristics. You do not get a
return code indicating the font was not available.
Example: TXCOUR12IR()
Copyright 1991 - Texas Associated Software - Red Oak, TX 27
TXCOUR12R()
Syntax: TXCOUR12R()
Purpose: Sets the font to Courier 12 point Roman-8 Symbol
Set 10 cpi.
Pitch Point Description
10.00 12.00 Courier Medium Roman-8
Argument: None
Returns: 0 Successful
Usage: TXCOUR12R() is used anytime you need to change the
font to Courier 12 point Roman-8. Courier 12
Roman-8 is the default font for all HP LaserJet
Printers.
Example: TXCOUR12R()
Copyright 1991 - Texas Associated Software - Red Oak, TX 28
TXDLFONT()
Syntax: TXDLFONT(<expC1>, <expN>, [<expN2>])
Purpose: Downloads a soft font file to the printer as a
permanent font.
Arguments: <expC1> is the soft font file name including
extension. Can include drive and directory path.
<expN> is the font ID to assign to the soft font
for reference later.
<expN2> is the printer port to which the printer
is connected. Valid values are "LPT1" and "LPT2".
If omitted, <expN2> will default to "PRN".
Returns: 0 Successful
1 Invalid number of parameters
2 Only 1 parameter passed
3 <expN1> font ID not numeric
4 <expC2> invalid printer port
5 <expC1> Soft font file not found
Usage: TXDLFONT() is used to download a soft font file to
the printer memory. It can be used by setting it
to the primary font using TXSETPFONT().
Example: _ret_code = TXDLFONT("C:\FONTS\TR10R#US.SFP", 1)
_ret_code = TXDLFONT("C:\FONTS\TR08R#US.SFP", 2)
_ret_code = TXSETPFONT(1)
(print using font ID #1)
_ret_code = TXSETPFONT(2)
(Print using font ID #2)
See Also: TXSETPFONT()
Printers: Do not use with the original HP LaserJet
Copyright 1991 - Texas Associated Software - Red Oak, TX 29
TXDOTBOX()
Syntax: TXDOTBOX(<expN1>, <expN2>, <expN3>, <expN4>,
[<expN5>], [<expN6>], [<expN7>])
Purpose: Prints a single or double lined box using dots as
x and y coordinates. A dot is the smallest
printable unit. One dot equals 1/300th of an inch.
The number of dots printed per inch is referred to
as the printer's resolution. The border thickness
is set by <expN7>. The box may be shaded using a
graybar.
Arguments: <expN1> is the upper x coordinate of the box.
<expN2> is the upper y coordinate of the box.
<expN3> is the width of the box in dots
<expN4> is the height of the box in dots
<expN5> is the border option.
1 = single line border
2 = double line border
<expN6> is the percent of shading to fill the box.
If omitted, the box will not be shaded. Valid
values are 1 - 100.
<expN7> is the thickness of the border in dots. Do
not use with double line border.
Returns: 0 Successful
1 Invalid number of parameters
2 Only 1 parameter passed
3 Only 2 parameters passed
4 Only 3 parameters passed
5 <expN1> x parameter not numeric
6 <expN2> y parameter not numeric
7 <expN3> width parameter not numeric
8 <expN4> height parameter not numeric
9 <expN5> border parameter not numeric
10 <expN6> shading percent not numeric
11 <expN6> shading percent > 100
12 <expN7> border weight parameter not numeric
Usage: TXDOTBOX() is useful anytime you need to print a
box using x and y dots as coordinates. TXDOTBOX()
is much more exact than TXCOLBOX(). It also can be
more exasperating. 300 dots equal 1 inch.
Copyright 1991 - Texas Associated Software - Red Oak, TX 30
Example: * To print a border on page
_ret_code = txdotbox(01, 01, 2400, 3000)
IF _ret_code != 0
set console on
set print off
set device to screen
?? "Error drawing DotBox "+str(_ret_code)
Return
ENDIF
(Your Print Routine)
See Also: TXCOLBOX(), TXGRAYBAR()
Printers: If used with the original HP LaserJet, do not use
with <expN6> for shading.
Copyright 1991 - Texas Associated Software - Red Oak, TX 31
TXDOTHLINE()
Syntax: TXDOTHLINE(<expN1>, <expN2>, <expN3>, <expN4>)
Purpose: Draws a vertical line at the designated x and y
coordinates with a width of <expN3> and <expN4>
dots high. TXDOTHLINE() allows you to draw a
horizontal line with great control over the line
placement.
Arguments: <expN1> is the x coordinate of line to be drawn.
<expN2> is the y coordinate of line to be drawn.
<expN3> is the width of your line in dots. 300
dots equal 1 inch.
<expN4> is the weight of the line. (Number of dots
high). 300 dots equal 1 inch.
Returns: 0 Successful
1 Invalid number of parameters
2 <expN1> x parameter not numeric
3 <expN2> y parameter not numeric
4 <expN3> width parameter not numeric
5 <expN4> weight parameter not numeric
Usage: TXDOTHLINE() is useful anytime you need to draw an
exact horizontal line of any width (<expN3>).
TXDOTHLINE() is much more exact than TXCOLHLINE()
and requires calculating your exact print
position. 300 dots equal 1 inch.
Example: * To print grid on a page.
for i = 1 to 2400 step 75
TXDOTVLINE( i, 01, 3300, 1)
next
for i = 1 to 3000 step 75
TXDOTHLINE(01, i, 2400, 1)
next
See Also: TXDOTVLINE(), TXCOLVLINE(), TXCOLHLINE()
Copyright 1991 - Texas Associated Software - Red Oak, TX 32
TXDOTPRINT()
Syntax: TXDOTPRINT(<expN1>, <expN2>, <expL>, <expC1>)
Purpose: Prints a string at the designated x and y
coordinates. TXDOTPRINT() allows you to construct
your page layout without ejecting the current
page.
Arguments: <expN1> is the x coordinate of text to be printed.
<expN2> is the y coordinate of text to be printed.
<expL> allows you to print entire text in
simulated boldface.
<expC1> is the string to be printed.
Returns: 0 Successful
1 Invalid number of parameters
2 <expN1> x parameter not numeric
3 <expN2> y parameter not numeric
4 <expL> bold parameter not logical
5 <expC1> text string not character
Usage: TXDOTPRINT() is useful anytime you need to print a
text string using x and y as coordinates. <expL>
will print the text string in a simulated
boldface. TXDOTPRINT() is much more exact and
requires calculating your exact print position.
300 dots equal 1 inch.
Example: * To print text in normal print
_text = "Texas Associated Software loves
LaserJets"
TXDOTPRINT(50, 50, .f., _text)
* To print text in bold print
TXDOTPRINT(50, 50, .t., _text)
Copyright 1991 - Texas Associated Software - Red Oak, TX 33
TXDOTVLINE()
Syntax: TXDOTVLINE(<expN1>, <expN2>, <expN3>, <expN4>)
Purpose: Prints a vertical line at the designated x and y
coordinates with a height of <expN3> and <expN4>
dots wide. TXDOTVLINE() allows you to draw a
vertical line with great control over the line
placement.
Arguments: <expN1> is the x coordinate of text to be printed.
<expN2> is the y coordinate of text to be printed.
<expN3> is the height of your line in dots. 300
dots equal 1 inch.
<expN4> is the weight of the line. (Number of dots
wide). 300 dots equal 1 inch.
Returns: 0 Successful
1 Invalid number of parameters
2 <expN1> x parameter not numeric
3 <expN2> y parameter not numeric
4 <expN3> length parameter not numeric
5 <expN4> weight parameter not numeric
Usage: TXDOTVLINE() is useful anytime you need to draw an
exact vertical line of any weight (width).
TXDOTVLINE() is much more exact than TXCOLVLINE()
and requires calculating your exact print
position. 300 dots equal 1 inch.
Example: * To print grid on a page.
for i = 1 to 2400 step 75
TXDOTVLINE( i, 01, 3300, 1)
next
for i = 1 to 3000 step 75
TXDOTHLINE(01, i, 2400, 1)
next
See Also: TXDOTHLINE(), TXCOLVLINE(), TXCOLHLINE()
Copyright 1991 - Texas Associated Software - Red Oak, TX 34
TXFONTBOLD()
Syntax: TXFONTBOLD(<expC>)
Purpose: Prints text in bold type.
Argument: <expC> is the text string or character memory
variable to be printed boldface.
Returns: Bolded string
Usage: TXFONTBOLD() is useful anytime you need to print
your text bold without having to reset your font.
Your printer must have the matching bold font
either as an internal font or cartridge.
Example: _printline = "Send money "+TXFONTBOLD("NOW!")
TXCOLPRINT(10, 10, .f., _printline)
TXDOTPTINT(20, 10, .f., _printline)
See Also: TXBOLD, TXSUB(), TXSUPER(), TXCOLPRINT(),
TXDOTPRINT()
Copyright 1991 - Texas Associated Software - Red Oak, TX 35
TXFORMFEED()
Syntax: TXFORMFEED()
Purpose: Prints and ejects the current page.
Argument: None
Returns: 0 Successful
Usage: TXFORMFEED() is used anytime you need to print and
eject the current page.
Example: TXFORMFEED()
See Also: TXPSOURCE()
Copyright 1991 - Texas Associated Software - Red Oak, TX 36
TXGRAPHIC()
Syntax: TXGRAPHIC(<expN1>, <expN2>, <expC1>, <expN3>)
Purpose: Loads a graphic PCL file to printer to macro ID
<expN3> to be used later with the TXOVERLAY(),
TXMACEXEC() and TXMACCAL().
Arguments: <expN1> is the column coordinate of graphic.
<expN2> is the row coordinate of the graphic.
<expC1> is the PCL file to be downloaded to
<expN3> is the macro id of the graphic.
Returns: .T. Successful
.F. Unsuccessful
Usage: TXGRAPHIC() is useful anytime you need to print a
graphic symbol. This function uses PCL files
formatted using the Texas Associated Software PCL
conversion software. Use of other formats will
give unpredictable results.
Example: * To print a graphic converted with TexAS
conversion software at col #55, row #5 with a
macro id of 1.
TXGRAPHIC(55, 05, "SIGNATUR.PCL", 1)
DO WHILE !EOF()
(Print Routine)
TXOVERLAY(1)
ENDDO
See Also: TXOVERLAY(), TXMACCALL(), TXMACEXEC(),
TXMACBEGIN(), TXMACEND()
Copyright 1991 - Texas Associated Software - Red Oak, TX 37
TXGRAYBAR()
Syntax: TXGRAYBAR(<expN1>, <expN2>, <expN3>, <expN4>,
<expN5>)
Purpose: Draws an area at the row and column coordinates
shaded by the degree indicated by <expN5>. See
Shading printout included in Demo.
Arguments: <expN1> is the column coordinate of bar to be
drawn.
<expN2> is the row coordinate of bar to be drawn.
<expN3> is the width of your bar in columns.
<expN4> is the height of the bar.
<expN5> is the percentage of shading.
Returns: 0 Successful
1 Invalid number of parameters
2 <expN1> column parameter not numeric
3 <expN2> row parameter not numeric
4 <expN3> column width parameter not numeric
5 <expN4> row height parameter not numeric
6 <expN5> degree of shading
Usage: TXGRAYBAR() is useful anytime you need to draw a
shaded area. Particularly useful for emulating the
"greenbar" paper that distinguishes printed lines.
Example: * To draw gray bars to emulate "greenbar"
for i = 1 to 60
TXGRAYBAR( i, 01, 80, 04, 5)
next
See Also: TXPATTERNBAR(), TXCOLBOX(), TXDOTBOX()
Copyright 1991 - Texas Associated Software - Red Oak, TX 38
TXHCFA15()
Syntax: TXHCFA15(<expN1>)
Purpose: Prints Health Insurance Claim Form HCFA-1500.
Arguments: <expN1> is the macro number of form.
Returns: 0 Successful
1 Invalid number of parameters
2 <expN1> column parameter not numeric
Usage: TXHCFA15() is useful anytime you need to draw a
HCFA-1500 form to print in your application. Demo
form is to be used with an HP LaserJet III only.
Example: * To draw HCFA-1500 form and print data
TXHCFA15(1) && Assign HCFA-1500 form to
Macro #1
DO WHILE .T. && This is for you, Kent
Kingery, dcug
( Print routine using database )
ENDDO
TXOVERLAY(1) && Overlay HCFA-1500 Form on
current page
TXPSOURCE(0) && Print current page and
eject
See Also: TXOVERLAY(), TXPSOURCE(), TXMACBEGIN(), TXMACEND()
Copyright 1991 - Texas Associated Software - Red Oak, TX 39
TXHL10BR()
Syntax: TXHL10BR()
Purpose: Sets the font to Helvetica 10 point Bold Roman-8
Symbol Set proportional pitch.
Pitch Point Description
Proportional 10.00 Helvetica Bold Roman-8
Argument: None
Returns: 0 Successful
Usage: TXHL10BR() is used anytime you need to change the
font to Helvetica 10 point Bold Roman-8. Helvetica
10 Bold Roman-8 is not one of the internal fonts
for any HP LaserJet Printer. If you have a
cartridge with Helvetica 10 Bold Roman-8 on it,
you can use this function. If you select this font
and it is not available to your printer, the HP
LaserJet will set the font that most closely
matches the selected font's characteristics. You
do not get a return code indicating the font was
not available.
Example: TXHL10BR()
Copyright 1991 - Texas Associated Software - Red Oak, TX 40
TXHL10IR()
Syntax: TXHL10IR()
Purpose: Sets the font to Helvetica 10 point Italic Roman-8
Symbol Set proportional pitch.
Pitch Point Description
Proportional 10.00 Helvetica Medium Italic
Roman-8
Argument: None
Returns: 0 Successful
Usage: TXHL10IR() is used anytime you need to change the
font to Helvetica 10 point Italic Roman-8.
Helvetica 10 Italic Roman-8 is not one of the
internal fonts for any HP LaserJet Printer. If you
have a cartridge with Helvetica 10 point Italic
Roman-8 on it, you can use this function. If you
select this font and it is not available to your
printer, the HP LaserJet will set the font that
most closely matches the selected font's
characteristics. You do not get a return code
indicating the font was not available.
Example: TXHL10IR()
Copyright 1991 - Texas Associated Software - Red Oak, TX 41
TXHL10R()
Syntax: TXHL10R()
Purpose: Sets the font to Helvetica 10 point Roman-8 Symbol
Set proportional pitch.
Pitch Point Description
Proportional 10.00 Helvetica Medium Roman-8
Argument: None
Returns: 0 Successful
Usage: TXHL10R() is used anytime you need to change the
font to Helvetica 10 point Roman-8. Helvetica 10
point Roman-8 is not one of the internal fonts for
any HP LaserJet Printer. If you have a cartridge
with Helvetica 10 point Roman-8 on it, you can use
this function. If you select this font and it is
not available to your printer, the HP LaserJet
will set the font that most closely matches the
selected font's characteristics. You do not get a
return code indicating the font was not available.
Example: TXHL10R()
Copyright 1991 - Texas Associated Software - Red Oak, TX 42
TXHL12BR()
Syntax: TXHL12BR()
Purpose: Sets the font to Helvetica 12 point Bold Roman-8
Symbol Set proportional pitch.
Pitch Point Description
Proportional 12.00 Helvetica Bold Roman-8
Argument: None
Returns: 0 Successful
Usage: TXHL12BR() is used anytime you need to change the
font to Helvetica 12 point Bold Roman-8. Helvetica
12 Bold Roman-8 is not one of the internal fonts
for any HP LaserJet Printer. If you have a
cartridge with Helvetica 12 point Bold Roman-8 on
it, you can use this function. If you select this
font and it is not available to your printer, the
HP LaserJet will set the font that most closely
matches the selected font's characteristics. You
do not get a return code indicating the font was
not available.
Example: TXHL12BR()
Copyright 1991 - Texas Associated Software - Red Oak, TX 43
TXHL12IR()
Syntax: TXHL12IR()
Purpose: Sets the font to Helvetica 12 point Italic Roman-8
Symbol Set proportional pitch.
Pitch Point Description
Proportional 12.00 Helvetica Medium Italic
Roman-8
Argument: None
Returns: 0 Successful
Usage: TXHL12IR() is used anytime you need to change the
font to Helvetica 12 point Italic Roman-8.
Helvetica 12 Italic Roman-8 is not one of the
internal fonts for any HP LaserJet Printer. If you
have a cartridge with Helvetica 12 point Italic
Roman-8 on it, you can use this function. If you
select this font and it is not available to your
printer, the HP LaserJet will set the font that
most closely matches the selected font's
characteristics. You do not get a return code
indicating the font was not available.
Example: TXHL12IR()
Copyright 1991 - Texas Associated Software - Red Oak, TX 44
TXHL12R()
Syntax: TXHL12R()
Purpose: Sets the font to Helvetica 12 point Roman-8 Symbol
Set proportional pitch.
Pitch Point Description
Proportional 12.00 Helvetica Medium Roman-8
Argument: None
Returns: 0 Successful
Usage: TXHL12R() is used anytime you need to change the
font to Helvetica 12 point Roman-8. Helvetica 12
point Roman-8 is not one of the internal fonts for
any HP LaserJet Printer. If you have a cartridge
with Helvetica 12 point Roman-8 on it, you can use
this function. If you select this font and it is
not available to your printer, the HP LaserJet
will set the font that most closely matches the
selected font's characteristics. You do not get a
return code indicating the font was not available.
Example: TXHL12R()
Copyright 1991 - Texas Associated Software - Red Oak, TX 45
TXHL12SBA()
Syntax: TXHL12SBA()
Purpose: Sets the font to Helvetica 12 point SemiBold Ascii
Symbol Set proportional pitch.
Pitch Point Description
Proportional 12.00 Helvetica SemiBold Ascii
Argument: None
Returns: 0 Successful
Usage: TXHL12SBA() is used anytime you need to change the
font to Helvetica 12 point SemiBold Ascii.
Helvetica 12 SemiBold Ascii is not one of the
internal fonts for any HP LaserJet Printer. If you
have a cartridge with Helvetica 12 point SemiBold
Ascii on it, you can use this function. SemiBold
stroke weight is not as dark as Bold but darker
than normal Medium weight. If you select this font
and it is not available to your printer, the HP
LaserJet will set the font that most closely
matches the selected font's characteristics. You
do not get a return code indicating the font was
not available.
Example: TXHL12SBA()
Copyright 1991 - Texas Associated Software - Red Oak, TX 46
TXHL14IR()
Syntax: TXHL14IR()
Purpose: Sets the font to Helvetica 14 point Italic Roman-8
Symbol Set proportional pitch.
Pitch Point Description
Proportional 14.00 Helvetica Medium Italic
Roman-8
Argument: None
Returns: 0 Successful
Usage: TXHL14IR() is used anytime you need to change the
font to Helvetica 14 point Italic Roman-8.
Helvetica 14 Italic Roman-8 is not one of the
internal fonts for any HP LaserJet Printer. If you
have a cartridge with Helvetica 14 point Italic
Roman-8 on it, you can use this function. If you
select this font and it is not available to your
printer, the HP LaserJet will set the font that
most closely matches the selected font's
characteristics. You do not get a return code
indicating the font was not available.
Example: TXHL14IR()
Copyright 1991 - Texas Associated Software - Red Oak, TX 47
TXHL14SBA()
Syntax: TXHL14SBA()
Purpose: Sets the font to Helvetica 14 point SemiBold Ascii
Symbol Set proportional pitch.
Pitch Point Description
Proportional 14.00 Helvetica SemiBold Ascii
Argument: None
Returns: 0 Successful
Usage: TXHL14SBA() is used anytime you need to change the
font to Helvetica 14 point SemiBold Ascii.
Helvetica 14 SemiBold Ascii is not one of the
internal fonts for any HP LaserJet Printer. If you
have a cartridge with Helvetica 14 point SemiBold
Ascii on it, you can use this function. SemiBold
stroke weight is not as dark as Bold but darker
than normal Medium weight. If you select this font
and it is not available to your printer, the HP
LaserJet will set the font that most closely
matches the selected font's characteristics. You
do not get a return code indicating the font was
not available.
Example: TXHL14SBA()
Copyright 1991 - Texas Associated Software - Red Oak, TX 48
TXHL6R()
Syntax: TXHL6R()
Purpose: Sets the font to Helvetica 6 point Roman-8 Symbol
Set proportional pitch.
Pitch Point Description
Proportional 6.00 Helvetica Medium Roman-8
Argument: None
Returns: 0 Successful
Usage: TXHL6R() is used anytime you need to change the
font to Helvetica 6 point Roman-8. Helvetica 6
point Roman-8 is not one of the internal fonts for
any HP LaserJet Printer. If you have a cartridge
with Helvetica 6 point Roman-8 on it, you can use
this function. If you select this font and it is
not available to your printer, the HP LaserJet
will set the font that most closely matches the
selected font's characteristics. You do not get a
return code indicating the font was not available.
Example: TXHL6R()
Copyright 1991 - Texas Associated Software - Red Oak, TX 49
TXHL8R()
Syntax: TXHL8R()
Purpose: Sets the font to Helvetica 8 point Roman-8 Symbol
set proportional pitch.
Pitch Point Description
Proportional 8.00 Helvetica Medium Roman-8
Argument: None
Returns: 0 Successful
Usage: TXHL8R() is used anytime you need to change the
font to Helvetica 8 point Roman-8. Helvetica 8
point Roman-8 is not one of the internal fonts for
any HP LaserJet Printer. If you have a cartridge
with Helvetica 8 point Roman-8 on it, you can use
this function. If you select this font and it is
not available to your printer, the HP LaserJet
will set the font that most closely matches the
selected font's characteristics. You do not get a
return code indicating the font was not available.
Example: TXHL8R()
Copyright 1991 - Texas Associated Software - Red Oak, TX 50
TXHL8SBA()
Syntax: TXHL8SBA()
Purpose: Sets the font to Helvetica 8 point SemiBold Ascii
Symbol Set proportional pitch.
Pitch Point Description
Proportional 8.00 Helvetica SemiBold Ascii
Argument: None
Returns: 0 Successful
Usage: TXHL8SBA() is used anytime you need to change the
font to Helvetica 8 point SemiBold Ascii.
Helvetica 8 SemiBold Ascii is not one of the
internal fonts for any HP LaserJet Printer. If you
have a cartridge with Helvetica 8 point SemiBold
Ascii on it, you can use this function. SemiBold
stroke weight is not as dark as Bold but darker
than normal Medium weight. If you select this font
and it is not available to your printer, the HP
LaserJet will set the font that most closely
matches the selected font's characteristics. You
do not get a return code indicating the font was
not available.
Example: TXHL8SBA()
Copyright 1991 - Texas Associated Software - Red Oak, TX 51
TXINIT()
Syntax: TXINIT(<expN1>)
Purpose: Initialize the variables the Library requires for
its functions to operate correctly.
Argument: <expN1> is the Printer port to be used.
1 = LPT1
2 = LPT2
3 = LPT3
4 = COM1
5 = COM2
No parameter will default to "LPT1"
Returns: 0 Successful
1 not successful
Usage: TXINIT() MUST be used at the beginning of any
printing procedure.
Example: * Initialize variables
TXINIT(1) && Initialize LPT1 as printer port
(Print routine)
* Release variables
TXCLEAR()
See Also: TXCLEAR()
Copyright 1991 - Texas Associated Software - Red Oak, TX 52
TXLG12BR()
Syntax: TXLG12BR()
Purpose: Sets the font to Letter Gothic 12 point Bold
Roman-8 Symbol Set 12 cpi.
Pitch Point Description
12.00 12.00 Letter Gothic Bold Roman-
8
Argument: None
Returns: 0 Successful
Usage: TXLG12BR() is used anytime you need to change the
font to Letter Gothic 12 Bold Roman-8. Letter
Gothic 12 Bold Roman-8 is not one of the internal
fonts for any HP LaserJet Printer. If you have a
cartridge with Letter Gothic 12 Bold Roman-8 on
it, you can use this function. If you select this
font and it is not available to your printer, the
HP LaserJet will set the font that most closely
matches the selected font's characteristics. You
do not get a return code indicating the font was
not available.
Example: TXLG12BR()
Copyright 1991 - Texas Associated Software - Red Oak, TX 53
TXLG12IR()
Syntax: TXLG12IR()
Purpose: Sets the font to Letter Gothic 12 point Italic
Roman-8 Symbol set 12 cpi.
Pitch Point Description
12.00 12.00 Letter Gothic Italic
Roman-8
Argument: None
Returns: 0 Successful
Usage: TXLG12IR() is used anytime you need to change the
font to Letter Gothic 12 Italic Roman-8. Letter
Gothic 12 Italic Roman-8 is not one of the
internal fonts for any HP LaserJet Printer. If you
have a cartridge with Letter Gothic 12 Italic
Roman-8 on it, you can use this function. If you
select this font and it is not available to your
printer, the HP LaserJet will set the font that
most closely matches the selected font's
characteristics. You do not get a return code
indicating the font was not available.
Example: TXLG12IR()
Copyright 1991 - Texas Associated Software - Red Oak, TX 54
TXLG12R()
Syntax: TXLG12R()
Purpose: Sets the font to Letter Gothic 12 point Roman-8
Symbol Set 12 cpi.
Pitch Point Description
12.00 12.00 Letter Gothic Medium
Roman-8
Argument: None
Returns: 0 Successful
Usage: TXLG12R() is used anytime you need to change the
font to Letter Gothic 12 Roman-8. Letter Gothic 12
Roman-8 is not one of the internal fonts for any
HP LaserJet Printer. If you have a cartridge with
Letter Gothic 12 Roman-8 on it, you can use this
function. If you select this font and it is not
available to your printer, the HP LaserJet will
set the font that most closely matches the
selected font's characteristics. You do not get a
return code indicating the font was not available.
Example: TXLG12R()
Copyright 1991 - Texas Associated Software - Red Oak, TX 55
TXLG14A()
Syntax: TXLG14A()
Purpose: Sets the font to Letter Gothic 14 point Ascii
Symbol Set 10 cpi.
Pitch Point Description
10.00 14.00 Letter Gothic Medium
Ascii
Argument: None
Returns: 0 Successful
Usage: TXLG14A() is used anytime you need to change the
font to Letter Gothic 14 Ascii. Letter Gothic 14
Ascii is not one of the internal fonts for any HP
LaserJet Printer. If you have a cartridge with
Letter Gothic 14 Ascii on it, you can use this
function. If you select this font and it is not
available to your printer, the HP LaserJet will
set the font that most closely matches the
selected font's characteristics. You do not get a
return code indicating the font was not available.
Example: TXLG14A()
Copyright 1991 - Texas Associated Software - Red Oak, TX 56
TXLG14LG()
Syntax: TXLG14LG()
Purpose: Sets the font to Letter Gothic 14 point Legal
Symbol Set 10 cpi.
Pitch Point Description
10.00 14.00 Letter Gothic Medium
Legal
Argument: None
Returns: 0 Successful
Usage: TXLG14LG() is used anytime you need to change the
font to Letter Gothic 14 Legal. Letter Gothic 14
Legal is not one of the internal fonts for any HP
LaserJet Printer. If you have a cartridge with
Letter Gothic 14 Legal on it, you can use this
function. If you select this font and it is not
available to your printer, the HP LaserJet will
set the font that most closely matches the
selected font's characteristics. You do not get a
return code indicating the font was not available.
Example: TXLG14LG()
Copyright 1991 - Texas Associated Software - Red Oak, TX 57
TXLG96R()
Syntax: TXLG96R()
Purpose: Sets the font to Letter Gothic 9.6 point Roman-8
Symbol Set 16.67 cpi.
Pitch Point Description
16.67 9.60 Letter Gothic Medium
Roman-8
Argument: None
Returns: 0 Successful
Usage: TXLG96R() is used anytime you need to change the
font to Letter Gothic 9.6 Roman-8. Letter Gothic
9.6 Roman-8 is not one of the internal fonts for
any HP LaserJet Printer. If you have a cartridge
with Letter Gothic 9.6 Roman-8 on it, you can use
this function. If you select this font and it is
not available to your printer, the HP LaserJet
will set the font that most closely matches the
selected font's characteristics. You do not get a
return code indicating the font was not available.
Example: TXLG96R()
Copyright 1991 - Texas Associated Software - Red Oak, TX 58
TXLMARGIN()
Syntax: TXLMARGIN(<expN>)
Purpose: Designates the setting of the left margin of the
logical page in columns.
Argument: <expN> is column to set as the left margin.
Returns: 0 Successful
1 <expN> not numeric
Usage: TXLMARGIN() is used to set your page left margin.
Example: * Set left margin to column 10
_ret_code = TXLMARGIN(10)
See Also: TXRMARGIN(), TXTMARGIN(), TXSETLPI()
Copyright 1991 - Texas Associated Software - Red Oak, TX 59
TXLNPRT85()
Syntax: TXLNPRT85()
Purpose: Sets the font to Line Printer 8.5 point 16.67 cpi
Roman-8 Symbol Set
Pitch Point Description
16.67 8.50 Line Printer Roman-8
Argument: None
Returns: 0 Successful
Usage: TXLNPRT85() is used anytime you need to change the
font to Line Printer 8.5 Roman-8. Line Printer 8.5
Roman-8 is not an internal for the original
LaserJet. It is available in Portrait orientation
only for the LaserJet 500 and LaserJet Plus. If
you have a cartridge with Line Printer 8.5 Roman-8
on it, you can use this function. If you select
this font and it is not available to your printer,
the HP LaserJet will set the font that most
closely matches the selected font's
characteristics. You do not get a return code
indicating the font was not available.
Example: TXLNPRT85()
Copyright 1991 - Texas Associated Software - Red Oak, TX 60
TXMACBEGIN()
Syntax: TXMACBEGIN(<expN1>)
Purpose: Function to begin definition of macro designated
by ID # <expN1>.
Argument: <expC> is the ID # of the macro.
Returns: 0 Successful
Usage: TXMACBEGIN() is used to begin the macro
definition.
Example: * To set up macro # 1
TXMACBEGIN(1)
(Print commands to print repeating text)
* End macro # 1
TXMACEND(1)
See Also: TXMACEND(), TXMACDEL(), TXOVERLAY(), TXMACEXEC(),
TXMACCALL()
Copyright 1991 - Texas Associated Software - Red Oak, TX 61
TXMACCALL()
Syntax: TXMACCALL(<expN1>)
Purpose: Function to call a macro for execution. When a
macro is called, it begins executing the commands
using the current modified print environment.
Changes made to settings during a macro call are
recorded in the modified print environment, but
are not retained upon completion of the macro
call. The modified print environment that existed
prior to the macro call is restored.
Argument: <expC> is the ID # of the macro.
Returns: 0 Successful
Usage: TXMACCALL() is used to perform the macro.
Example: TXMACCALL(1)
See Also: TXMACBEGIN(), TXMACEND(), TXMACDEL(), TXOVERLAY(),
TXMACEXEC()
Copyright 1991 - Texas Associated Software - Red Oak, TX 62
TXMACDEL()
Syntax: TXMACDEL()
Purpose: Deletes all temporary and permanent macros
previously defined in printer memory.
Argument: none
Returns: 0 Successful
Usage: TXMACDEL() is used to delete macro definition.
Example: TXMACDEL()
See Also: TXMACBEGIN(), TXMACEND(), TXOVERLAY(),
TXMACEXEC(), TXMACCALL()
Copyright 1991 - Texas Associated Software - Red Oak, TX 63
TXMACEND()
Syntax: TXMACEND(<expN1>)
Purpose: Function to end definition of the macro designated
by ID # <expN1>.
Argument: <expC> is the ID # of the macro.
Returns: 0 Successful
Usage: TXMACEND() is used to end the macro definitions.
Example: * To set up macro # 1
TXMACBEGIN(1)
(Print commands to print repeating text)
* End macro # 1 definition
TXMACEND(1)
See Also: TXMACBEGIN(), TXMACDEL(), TXOVERLAY(),
TXMACEXEC(), TXMACCALL()
Copyright 1991 - Texas Associated Software - Red Oak, TX 64
TXMACEXEC()
Syntax: TXMACEXEC(<expN1>)
Purpose: Function to execute macro. When a macro is
executed, the commands that change the current
print environment are retained upon completion of
the macro.
Argument: <expC> is the ID # of the macro.
Returns: 0 Successful
Usage: TXMACEXEC() is used to perform the macro.
Example: TXMACEXEC(1)
See Also: TXMACBEGIN(), TXMACEND(), TXMACDEL(), TXOVERLAY(),
TXMACCALL()
Copyright 1991 - Texas Associated Software - Red Oak, TX 65
TXORIENT()
Syntax: TXORIENT(<expC>)
Purpose: A page setup command that designates the position
of the logical page and the direction of print
with respect to the physical page.
Argument: <expC> is the command to designate Portrait or
Landscape Orientation.
"P" = Portrait
"L" = Landscape
Returns: 0 Successful
1 <expC> not character
2 Invalid parameter
Usage: TXORIENT() is used to set your page orientation.
It should be used along with the other commands
used to setup your page. If used after issuing
print commands, the current page will be printed
and ejected.
Example: * Set orientation to landscape.
_ret_code = TXORIENT("L")
See Also: TXRMARGIN(), TXTMARGIN(), TXSETLPI()
Copyright 1991 - Texas Associated Software - Red Oak, TX 66
TXOVERLAY()
Syntax: TXOVERLAY(<expN1>)
Purpose: Function to enable macro for execution. When the
macro is enabled, its execution will be the final
operation each time a page is printed. Before the
macro is performed, the current print environment
is saved and replaced with the overlay
environment. Upon completion of the macro, the
current print environment is restored to its
original settings.
Argument: <expC> is the ID # of the macro.
Returns: 0 Successful
Usage: TXOVERLAY() is used to perform the macro. See
Invoice demo.
Example: TXOVERLAY(1)
See Also: TXMACBEGIN(), TXMACEND(), TXMACDEL(), TXMACEXEC(),
TXMACCALL()
Copyright 1991 - Texas Associated Software - Red Oak, TX 67
TXPAGESIZE()
Syntax: TXPAGESIZE(<expC>)
Purpose: Designates the physical page size which in turn
defines the size of the logical page.
Argument: <expC> is name of the paper size to be used in
current print routine.
Paper
"LETTER" 8 1/2" x 11"
"LEGAL" 8 1/2" x 14"
"EXEC" 7 1/4" x 10 1/2"
"A4" 210mm x 297mm
Envelopes
"MONARCH" 3 7/8" x 7 1/2"
"COMM10" 4 1/8" x 9 1/2"
"INTDL" 110mm x 220mm
"INTC5" 162mm x 229mm
Returns: 0 Successful
1 <expC> not character
2 <expC> invalid parameter
Usage: TXPAGESIZE() is used to set the page size for
printing.
Example: * Set page size other than default "LETTER"
_ret_code = TXPAGESIZE("LEGAL")
See Also: TXPGLENGTH()
Copyright 1991 - Texas Associated Software - Red Oak, TX 68
TXPATTERNBAR()
Syntax: TXPATTERNBAR(<expN1>, <expN2>, <expN3>, <expN4>,
<expN5>, <expL>)
Purpose: Draws an area at the row and column coordinates
filled with one of the six patterns drawn by the
Laserjet. See Patterns printout included in Demo.
Arguments: <expN1> is the row coordinate of pattern to be
drawn.
<expN2> is the column coordinate of pattern to be
drawn.
<expN3> is the width of your pattern in columns.
<expN4> is the height of the pattern.
<expN5> is the pattern of choice.
<expL> is the logical indicator to draw a single
line border around the pattern.
Returns: 0 Successful
1 Invalid number of parameters
2 <expN1> column parameter not numeric
3 <expN2> row parameter not numeric
4 <expN3> column width parameter not numeric
5 <expN4> row height parameter not numeric
6 <expN5> pattern choice
7 <expL> border indicator not logical
Usage: TXPATTERNBAR() is useful anytime you need to draw
an image that needs to be distinguished from
another. By using different pattern choices you
can draw distinctive figures.
Example: * To draw graph bars quarterly of sales in
thousands
1stQtr = 19
2ndQtr = 23
3rdQtr = 15
4thQtr = 30
TXPATTERNBAR(40 - 1stQtr, 10, 10, 1stQtr, 1, .t.)
TXPATTERNBAR(40 - 2ndQtr, 30, 10, 2ndQtr, 1, .t.)
TXPATTERNBAR(40 - 3rdQtr, 50, 10, 3rdQtr, 1, .t.)
TXPATTERNBAR(40 - 4thQtr, 70, 10, 4thQtr, 1, .t.)
See Also: TXDOTHLINE(), TXCOLVLINE(), TXCOLHLINE()
Copyright 1991 - Texas Associated Software - Red Oak, TX 69
TXPE10BLG()
Syntax: TXPE10BLG()
Purpose: Sets the font to Prestige Elite 10 point Bold
Legal Symbol Set 12 cpi.
Pitch Point Description
12.00 10.00 Prestige Elite Bold Legal
Argument: None
Returns: 0 Successful
Usage: TXPE10BLG() is used anytime you need to change the
font to Prestige Elite 10 point Bold Legal.
Prestige Elite 10 point Bold Legal is not one of
the internal fonts for any HP LaserJet Printer. If
you have a cartridge with Prestige Elite 10 point
Bold Legal on it, you can use this function. If
you select this font and it is not available to
your printer, the HP LaserJet will set the font
that most closely matches the selected font's
characteristics. You do not get a return code
indicating the font was not available.
Example: TXPE10BLG()
Copyright 1991 - Texas Associated Software - Red Oak, TX 70
TXPE10BR()
Syntax: TXPE10BR()
Purpose: Sets the font to Prestige Elite 10 point Bold
Roman-8 Symbol Set 12 cpi.
Pitch Point Description
12.00 10.00 Prestige Elite Bold
Roman-8
Argument: None
Returns: 0 Successful
Usage: TXPE10BR() is used anytime you need to change the
font to Prestige Elite 10 point Bold Roman-8.
Prestige Elite 10 point Bold Roman-8 is not one of
the internal fonts for any HP LaserJet Printer. If
you have a cartridge with Prestige Elite 10 point
Bold Roman-8 on it, you can use this function. If
you select this font and it is not available to
your printer, the HP LaserJet will set the font
that most closely matches the selected font's
characteristics. You do not get a return code
indicating the font was not available.
Example: TXPE10BR()
Copyright 1991 - Texas Associated Software - Red Oak, TX 71
TXPE10ILG()
Syntax: TXPE10ILG()
Purpose: Sets the font to Prestige Elite 10 point Italic
Legal Symbol Set 12 cpi.
Pitch Point Description
12.00 10.00 Prestige Elite Italic
Legal
Argument: None
Returns: 0 Successful
Usage: TXPE10ILG() is used anytime you need to change the
font to Prestige Elite 10 point Italic Legal.
Prestige Elite 10 point Italic Legal is not one of
the internal fonts for any HP LaserJet Printer. If
you have a cartridge with Prestige Elite 10 point
Italic Legal on it, you can use this function. If
you select this font and it is not available to
your printer, the HP LaserJet will set the font
that most closely matches the selected font's
characteristics. You do not get a return code
indicating the font was not available.
Example: TXPE10ILG()
Copyright 1991 - Texas Associated Software - Red Oak, TX 72
TXPE10IR()
Syntax: TXPE10IR()
Purpose: Sets the font to Prestige Elite 10 point Italic
Roman-8 Symbol Set 12 cpi.
Pitch Point Description
12.00 10.00 Prestige Elite Italic
Legal
Argument: None
Returns: 0 Successful
Usage: TXPE10IR() is used anytime you need to change the
font to Prestige Elite 10 point Italic Roman-8.
Prestige Elite 10 point Italic Roman-8 is not one
of the internal fonts for any HP LaserJet Printer.
If you have a cartridge with Prestige Elite 10
point Italic Roman-8 on it, you can use this
function. If you select this font and it is not
available to your printer, the HP LaserJet will
set the font that most closely matches the
selected font's characteristics. You do not get a
return code indicating the font was not available.
Example: TXPE10IR()
Copyright 1991 - Texas Associated Software - Red Oak, TX 73
TXPE10LG()
Syntax: TXPE10LG()
Purpose: Sets the font to Prestige Elite 10 point Legal
Symbol set 12 cpi.
Pitch Point Description
12.00 10.00 Prestige Elite Legal
Medium
Argument: None
Returns: 0 Successful
Usage: TXPE10LG() is used anytime you need to change the
font to Prestige Elite 10 point Legal. Prestige
Elite 10 point Legal is not one of the internal
fonts for any HP LaserJet Printer. If you have a
cartridge with Prestige Elite 10 point Legal on
it, you can use this function. If you select this
font and it is not available to your printer, the
HP LaserJet will set the font that most closely
matches the selected font's characteristics. You
do not get a return code indicating the font was
not available.
Example: TXPE10LG()
Copyright 1991 - Texas Associated Software - Red Oak, TX 74
TXPE10MA()
Syntax: TXPE10MA()
Purpose: Sets the font to Prestige Elite 10 point Math
Symbol Set proportional pitch.
Pitch Point Description
Proportional 10.00 Prestige Elite Math
Argument: None
Returns: 0 Successful
Usage: TXPE10MA() is used anytime you need to change the
font to Prestige Elite 10 Math. Prestige Elite 10
Math is not an internal for any LaserJet printer.
If you have a cartridge with Prestige Elite 10
Math on it, you can use this function. If you
select this font and it is not available to your
printer, the HP LaserJet will set the font that
most closely matches the selected font's
characteristics. You do not get a return code
indicating the font was not available.
Example: TXPE10MA()
Copyright 1991 - Texas Associated Software - Red Oak, TX 75
TXPE10R()
Syntax: TXPE10R()
Purpose: Sets the font to Prestige Elite 10 point Roman-8
Symbol Set 12 cpi.
Pitch Point Description
12.00 10.00 Prestige Elite
Argument: None
Returns: 0 Successful
Usage: TXPE10R() is used anytime you need to change the
font to Prestige Elite 10 point Roman-8. Prestige
Elite 10 point Roman-8 is not one of the internal
fonts for any HP LaserJet Printer. If you have a
cartridge with Prestige Elite 10 point Roman-8 on
it, you can use this function. If you select this
font and it is not available to your printer, the
HP LaserJet will set the font that most closely
matches the selected font's characteristics. You
do not get a return code indicating the font was
not available.
Example: TXPE10R()
Copyright 1991 - Texas Associated Software - Red Oak, TX 76
TXPE7LG()
Syntax: TXPE7LG()
Purpose: Sets the font to Prestige Elite 7 point Legal
Symbol set 16.67 cpi.
Pitch Point Description
16.78 7.00 Prestige Elite Legal
Medium
Argument: None
Returns: 0 Successful
Usage: TXPE7LG() is used anytime you need to change the
font to Prestige Elite 7 point Legal. Prestige
Elite 7 point Legal is not one of the internal
fonts for any HP LaserJet Printer. If you have a
cartridge with Prestige Elite 7 point Legal on it,
you can use this function. If you select this font
and it is not available to your printer, the HP
LaserJet will set the font that most closely
matches the selected font's characteristics. You
do not get a return code indicating the font was
not available.
Example: TXPE7LG()
Copyright 1991 - Texas Associated Software - Red Oak, TX 77
TXPE7MA()
Syntax: TXPE7MA()
Purpose: Sets the font to Prestige Elite 7 point Math
Symbol Set 16.67 cpi.
Pitch Point Description
16.67 7.00 Prestige Elite Math
Argument: None
Returns: 0 Successful
Usage: TXPE7MA() is used anytime you need to change the
font to Prestige Elite 7 point Math. Prestige
Elite 7 point Math is not one of the internal
fonts for any HP LaserJet Printer. If you have a
cartridge with Prestige Elite 7 point Math on it,
you can use this function. If you select this font
and it is not available to your printer, the HP
LaserJet will set the font that most closely
matches the selected font's characteristics. You
do not get a return code indicating the font was
not available.
Example: TXPE7MA()
Copyright 1991 - Texas Associated Software - Red Oak, TX 78
TXPE7R()
Syntax: TXPE7R()
Purpose: Sets the font to Prestige Elite 7 16.67 cpi point
Roman-8 Symbol Set.
Pitch Point Description
16.67 7.00 Prestige Elite Math
Argument: None
Returns: 0 Successful
Usage: TXPE7R() is used anytime you need to change the
font to Prestige Elite 7 point Roman-8. Prestige
Elite 7 point Roman-8 is not one of the internal
fonts for any HP LaserJet Printer. If you have a
cartridge with Prestige Elite 7 point Roman-8 on
it, you can use this function. If you select this
font and it is not available to your printer, the
HP LaserJet will set the font that most closely
matches the selected font's characteristics. You
do not get a return code indicating the font was
not available.
Example: TXPE7R()
Copyright 1991 - Texas Associated Software - Red Oak, TX 79
TXPGLENGTH()
Syntax: TXPGLENGTH(<expN>)
Purpose: Designates the length of the logical page in
lines.
Argument: <expN> is number of lines in logical page.
The page length values associated with the
standard paper sizes are:
Page Size Lines-per-inch Setting
6 8
Letter 66 88
Legal 84 112
A4 70 93
Executive 63 84
Returns: 0 Successful
1 <expN> not numeric
Usage: TXPGLENGTH() is use to set logical page length in
number of lines.
Example: * Set page length to other than above default
_ret_code = TXPGLENGTH(80)
See Also: TXPAGESIZE()
Copyright 1991 - Texas Associated Software - Red Oak, TX 80
TXPOSTNET()
Syntax: TXPOSTNET(<expN1>, <expN2>, <expC1>)
Purpose: Prints USPS Postnet Barcode.
Arguments: <expN1> is the column coordinate of Postnet
Barcode.
<expN2> is the row coordinate of Postnet Barcode.
<expC1> is the ZIP+4 Zip Code.
Returns: 0 Successful
1 Invalid number of parameters
2 <expN1> column parameter not numeric
3 <expN2> row parameter not numeric
4 <expN1> ZIP not character
5 <expC1> ZIP not 5 or 10 positions
Usage: TXPOSTNET() is useful to print the Postnet Barcode
for the ZIP Zip Code. A substantial savings can be
recognized by sorting the pieces to be mailed in
Zip Code order and generating the USPS Postnet
Barcode. The Postnet Barcode should be printed at
least 1/4" from bottom of envelope.
Example: * To print Postnet Barcode
TXINIT()
TXORIENT("L")
_company = "Texas Associated Software"
_address1 = "523 La Cresta Drive"
_city_state = "Red Oak, TX"
_zip_code = "75154-5109"
TXCOLPRINT(25,50,.T.,_company)
TXCOLPRINT(26,50,.F.,_address1)
TXCOLPRINT(27,50,.F.,_city_state +" "+_zip_code)
_ret_code = TXPOSTNET(34, 70, _zip_code)
TXCLEAR()
See Also: TXPAGESIZE()
Copyright 1991 - Texas Associated Software - Red Oak, TX 81
TXPRS14BA()
Syntax: TXPRS14BA()
Purpose: Sets the font to Presentation Bold Ascii Symbol
Set 14 point 10 cpi.
Pitch Point Description
10.00 14.00 Presentation Bold Ascii
Argument: None
Returns: 0 Successful
Usage: TXPRS14BA() is used anytime you need to change the
font to Presentation 14 Bold Ascii. Presentation
14 Bold Ascii is not one of the internal fonts for
any HP LaserJet Printer. If you have a cartridge
with Presentation 14 Bold Ascii on it, you can use
this function. If you select this font and it is
not available to your printer, the HP LaserJet
will set the font that most closely matches the
selected font's characteristics. You do not get a
return code indicating the font was not available.
Example: TXPRS14BA()
Copyright 1991 - Texas Associated Software - Red Oak, TX 82
TXPRS14BLG()
Syntax: TXPRS14BLG()
Purpose: Sets the font to Presentation Bold Legal Symbol
Set 14 point 10 cpi.
Pitch Point Description
10.00 14.00 Presentation Bold Legal
Argument: None
Returns: 0 Successful
Usage: TXPRS14BLG() is used anytime you need to change
the font to Presentation Legal 14. Presentation
Legal 14 is not one of the internal fonts for any
HP LaserJet Printer. If you have a cartridge with
Presentation Legal 14 on it, you can use this
function. If you select this font and it is not
available to your printer, the HP LaserJet will
set the font that most closely matches the
selected font's characteristics. You do not get a
return code indicating the font was not available.
Example: TXPRS14BLG()
Copyright 1991 - Texas Associated Software - Red Oak, TX 83
TXPRS16BA()
Syntax: TXPRS16BA()
Purpose: Sets the font to Presentation Bold Ascii Symbol
Set 16.1 point 8.11 cpi.
Pitch Point Description
8.11 16.10 Presentation Bold Ascii
Argument: None
Returns: 0 Successful
Usage: TXPRS16BA() is used anytime you need to change the
font to Presentation 16 Bold Ascii. Presentation
16 Bold Ascii is not one of the internal fonts for
any HP LaserJet Printer. If you have a cartridge
with Presentation 16 Bold Ascii on it, you can use
this function. If you select this font and it is
not available to your printer, the HP LaserJet
will set the font that most closely matches the
selected font's characteristics. You do not get a
return code indicating the font was not available.
Example: TXPRS16BA()
Copyright 1991 - Texas Associated Software - Red Oak, TX 84
TXPRS16BLG()
Syntax: TXPRS16BLG()
Purpose: Sets the font to Presentation Bold Legal Symbol
Set 16 point 8.11 cpi.
Pitch Point Description
8.11 16.00 Presentation Bold Legal
Argument: None
Returns: 0 Successful
Usage: TXPRS16BLG() is used anytime you need to change
the font to Presentation Legal 16. Presentation
Legal 16 is not one of the internal fonts for any
HP LaserJet Printer. If you have a cartridge with
Presentation Legal 16 on it, you can use this
function. If you select this font and it is not
available to your printer, the HP LaserJet will
set the font that most closely matches the
selected font's characteristics. You do not get a
return code indicating the font was not available.
Example: TXPRS16BLG()
Copyright 1991 - Texas Associated Software - Red Oak, TX 85
TXPRS18BA()
Syntax: TXPRS18BA()
Purpose: Sets the font to Presentation Bold Ascii Symbol
Set 18 point 6.53 cpi.
Pitch Point Description
6.53 18.00 Presentation Bold Ascii
Argument: None
Returns: 0 Successful
Usage: TXPRS18BA() is used anytime you need to change the
font to Presentation Ascii 18. Presentation Ascii
18 is not one of the internal fonts for any HP
LaserJet Printer. If you have a cartridge with
Presentation Ascii 18 on it, you can use this
function. If you select this font and it is not
available to your printer, the HP LaserJet will
set the font that most closely matches the
selected font's characteristics. You do not get a
return code indicating the font was not available.
Example: TXPRS18BA()
Copyright 1991 - Texas Associated Software - Red Oak, TX 86
TXPRS18BLG()
Syntax: TXPRS18BLG()
Purpose: Sets the font to Presentation Bold Legal Symbol
Set 18 point 6.53 cpi.
Pitch Point Description
6.53 18.00 Presentation Bold Legal
Argument: None
Returns: 0 Successful
Usage: TXPRS18BLG() is used anytime you need to change
the font to Presentation Legal 18. Presentation
Legal 18 is not one of the internal fonts for any
HP LaserJet Printer. If you have a cartridge with
Presentation Legal 18 on it, you can use this
function. If you select this font and it is not
available to your printer, the HP LaserJet will
set the font that most closely matches the
selected font's characteristics. You do not get a
return code indicating the font was not available.
Example: TXPRS18BLG()
Copyright 1991 - Texas Associated Software - Red Oak, TX 87
TXPSOURCE()
Syntax: TXPSOURCE(<expN>)
Purpose: Designates the location to feed paper or prints
current page.
Argument: <expN> is command to locate the paper source or to
print the current page.
<expN> = 0 - Print current page (paper source
remains unchanged.
1 - Feed paper from the upper paper
tray
2 - Manual paper feed
3 - Manual envelope feed
4 - Feed paper from lower paper tray
5 - Feed from paper deck
6 - Feed envelope from optional
envelope feeder.
Returns: 0 Successful
1 <expN> not numeric
2 Invalid value for <expN>
Usage: TXPSOURCE() is useful anytime you need to change
the source of your paper. Not all LaserJet
printers support all possible paper sources. Refer
to your user manual for printer configuration. It
is also used to print page if you did not use the
normal "@ col, row say" command to print your
page.
Example: * Print from lower tray containing special forms
_ret_code = TXPSOURCE(4)
(Print forms routine)
* Return paper source to top tray
_ret_code = TXPSOURCE(1)
(Print from top tray)
* Request manual paper feed
_ret_code = TXPSOURCE(2)
(Print manually input form)
See Also:
Printers: Not all LaserJet printers support all possible
paper source options. Refer to your reference
manual for your printer configuration.
Copyright 1991 - Texas Associated Software - Red Oak, TX 88
TXRESET()
Syntax: TXRESET()
Purpose: TXRESET() restores the user default environment
and deletes temporary fonts and macros. Any
partial pages that have not been printed are
printed.
Argument: None
Returns: 0
Usage: TXRESET() is useful at the beginning and end of
your print routine. It will assure your have
having your printer environment "clean" when you
start and end your printing task. If used at the
beginning of your print routine, a blank page may
be ejected depending on what was printed before.
Example: set console off
set device to print
set print on
TXRESET()
(Print Routine)
TXRESET()
Set print off
set device to screen
set console on
See Also: TXINIT(), TXCLEAR()
Copyright 1991 - Texas Associated Software - Red Oak, TX 89
TXRMARGIN()
Syntax: TXRMARGIN(<expN>)
Purpose: Designates the setting of the right margin of the
logical page in columns.
Argument: <expN> is column to set as the right margin.
Returns: 0 Successful
1 <expN> not numeric
Usage: TXRMARGIN() is used to set your page right margin.
Example: * Set right margin to column 70
_ret_code = TXRMARGIN(70)
See Also: TXLMARGIN(), TXTMARGIN(), TXCLRMRG()
Copyright 1991 - Texas Associated Software - Red Oak, TX 90
TXSCALABLE()
Syntax: TXSCALABLE(<expC1>, <expL>, <expC2>, <expN1>)
Purpose: Select and set internal scalable font on the HP
LaserJet III.
Arguments: <expC1> is the scalable font typeface. The HP
LaserJet III has two typefaces available;
"C" CG Times (similar to Times Roman)
"U" Universal (similar to Helvetica).
<expL> is the font weight (Bold or Normal).
.f. = Normal
.t. = Bold.
<expC2> is the font style "Upright" or "Italic".
"U" = Upright
"I" = Italic
<expN1> is the point size.
Returns: 0 Successful
1 Invalid number of parameters
2 <expC1> parameter not Character
3 <expC1> not equal "C" or "U"
4 <expL> not logical
5 <expC2> not character
6 <expC2> not equal "U" or "I"
7 <expN1> not numeric
Usage: TXSCALABLE() is used only with the HP LaserJet
III. This function will allow you to use the
internal scalable fonts.
Example: TXSCALABLE("C", .f., "U", 24)
* This will select the CG Times scalable font,
normal weight, upright style, 24 points high.
Printers: Use this only with the HP LaserJet III
Copyright 1991 - Texas Associated Software - Red Oak, TX 91
TXSENDSTR()
Syntax: TXSENDSTR(<expC>)
Purpose: Send a text string to the printer.
Argument: <expC> is the text string or character memory
variable to be sent to printer.
Returns: 0
Usage: TXSENDSTR() is useful anytime you need to send a
text string to the printer. For example - if you
have a font that is not in the library, you can
send the escape codes to the printer by using this
function.
Example: _String = CHR(27)+"(8U"+CHR(27)+"(s0p10h12v0s0b3T"
TXSENDSTR(_String)
* This will send the escape sequence to the
printer and will set the font to Courier 12 point
10 cpi Roman-8 Character set.
See Also: TXCOLPRINT(), TXDOTPRINT()
Copyright 1991 - Texas Associated Software - Red Oak, TX 92
TXSETLPI()
Syntax: TXSETLPI(<expN>)
Purpose: Sets the number of lines per vertical inch to
print in your logical text area.
Argument: <expN> is the number of lines printed per inch.
The default setting is 6. Valid values for <expN>
are 1, 2, 3, 4, 6, 8, 12, 16, 24 or 48.
Returns: 0 Successful
1 <expN> not numeric
2 Invalid value for <expN>
Usage: TXSETLPI() is useful anytime you need to change
the line spacing in midstream of a print routine.
You can use it to increase readability with larger
fonts or print entire report on one page using
smaller font.
Example: * Printer is set at default 6 lpi
@ 01, 30 say "Print Large Report Heading"
TXLNPRT85() && select line printer font 8.5 point
16.67 cpi
_ret_code = TXSETLPI(8)
IF _ret_code = 0
(Print Routine to print @ 8 lpi )
ENDIF
See Also: TXCOPIES(), TXLMARGIN(), TXRMARGIN(), TXTMARGIN()
Copyright 1991 - Texas Associated Software - Red Oak, TX 93
TXSETPFONT()
Syntax: TXSETPFONT(<expN>)
Purpose: Select font using the associated font ID.
Argument: <expN> is the font ID.
Returns: 0 Successful
1 <expN> not numeric
Usage: TXSETPFONT() is useful anytime you need to change
the font you are printing. This is associated with
a soft font you have previously downloaded.
Example: * Print using font ID #1
TXDLFONT("TR10R#US.SFP", 1)
TXDLFONT("TR18R#US.SFP", 2)
TXSETPFONT(1)
@ 01, 10 say "This will print in TR 10 point"
TXSETPFONT(2)
@ 05, 10 say "This will print in TR 18 point"
See Also: TXDLFONT()
Copyright 1991 - Texas Associated Software - Red Oak, TX 94
TXSETSFONT()
Syntax: TXSETSFONT(<expN>)
Purpose: Designates soft font as secondary.
Argument: <expN> is the font ID.
Returns: 0 Successful
1 <expN> not numeric
Usage: TXSETSFONT() is useful anytime you need to
designate the font as secondary. This is
associated with a soft font you have previously
downloaded.
Example: * Print using font ID #1
TXDLFONT("TR10R#US.SFP", 1)
TXDLFONT("TR18R#US.SFP", 2)
TXSETPFONT(1)
TXSETSFONT(2)
See Also: TXSETPFONT()
Copyright 1991 - Texas Associated Software - Red Oak, TX 95
TXSUB()
Syntax: TXSUB(<expC>)
Purpose: Prints a text string in subscript mode.
Argument: <expC> is the text string or character memory
variable to be printed in subscript.
Returns: Subscripted string
Usage: TXSUB() is useful anytime you need to print your
text subscripted. It will print the subscripted
text in the same font as your normal text line.
Example: water = "H"+txsub("2")+"O"
badacid = "H"+txsub("2")+"SO"+txsub("4")
@ 10, 10 say "Drink "+water+" not "+badacid
See Also: TXSUPER(), TXCOLPRINT(), TXDOTPRINT()
Copyright 1991 - Texas Associated Software - Red Oak, TX 96
TXSUPER()
Syntax: TXSUPER(<expC>)
Purpose: Prints a text string in superscript mode.
Argument: <expC> is the text string or character memory
variable to be printed in superscript.
Returns: Superscripted string
Usage: TXSUPER() is useful anytime you need to print your
text superscripted. It will print the
superscripted text in the same font as your normal
text line.
Example: copynote = "Copyright"+txsuper("(c)")+" 1991"
@ 60, 30 say copynote
See Also: TXSUB(), TXCOLPRINT(), TXDOTPRINT()
Copyright 1991 - Texas Associated Software - Red Oak, TX 97
TXTAX12BLD()
Syntax: TXTAX12BLD()
Purpose: Sets the font to Tax 12 Point Bold 10 cpi Line
Draw Symbol Set.
Pitch Point Description
10.00 12.00 Tax Line Draw Bold
Argument: None
Returns: 0 Successful
Usage: TXTAX12BLD() is used anytime you need to change
the font to Tax Line Draw 12. Tax Line Draw 12 is
not one of the internal fonts for any HP LaserJet
Printer. If you write a tax package, this is the
font used for forms. If you have a cartridge with
Tax Line Draw 12 on it, you can use this function.
If you select this font and it is not available to
your printer, the HP LaserJet will set the font
that most closely matches the selected font's
characteristics. You do not get a return code
indicating the font was not available.
Example: TXTAX12BLD()
Copyright 1991 - Texas Associated Software - Red Oak, TX 98
TXTEXTLEN()
Syntax: TXTEXTLEN(<expN>)
Purpose: Designates the length of the logical page in
lines.
Argument: <expN> is number of lines.
Returns: 0 Successful
1 <expN> not numeric
Usage: TXTEXTLEN() is used to set your number of lines to
print per page.
Example: * Set number of lines to 45
_ret_code = TXTEXTLEN(45)
See Also: TXLMARGIN(), TXRMARGIN(), TXSETLPI()
Copyright 1991 - Texas Associated Software - Red Oak, TX 99
TXTMARGIN()
Syntax: TXTMARGIN(<expN>)
Purpose: Designates the setting of the top margin of the
logical page in rows.
Argument: <expN> is row set as the top margin.
Returns: 0 Successful
1 <expN> not numeric
Usage: TXTMARGIN() is used to set your page top margin.
Example: * Set top margin to column 5
_ret_code = TXTMARGIN(5)
See Also: TXLMARGIN(), TXRMARGIN(), TXSETLPI(), TXCLRMRG()
Copyright 1991 - Texas Associated Software - Red Oak, TX 100
TXTR10BR()
Syntax: TXTR10BR()
Purpose: Sets the font to Times Roman 10 point Bold Roman-8
Symbol Set proportional pitch.
Pitch Point Description
Proportional 10.00 Times Roman Bold Roman-8
Argument: None
Returns: 0 Successful
Usage: TXTR10BR() is used anytime you need to change the
font to Times Roman 10 Bold Roman-8. Times Roman
10 Bold Roman-8 is not one of the internal fonts
for any HP LaserJet Printers. If you have a
cartridge with Times Roman 10 Bold Roman-8 on it,
you can use this function. If you select this font
and it is not available to your printer, the HP
LaserJet will set the font that most closely
matches the selected font's characteristics. You
do not get a return code indicating the font was
not available.
Example: TXTR10BR()
Copyright 1991 - Texas Associated Software - Red Oak, TX 101
TXTR10IR()
Syntax: TXTR10IR()
Purpose: Sets the font to Times Roman 10 point Italic
Roman-8 Symbol Set proportional pitch.
Pitch Point Description
Proportional 10.00 Times Roman Italic Roman-
8
Argument: None
Returns: 0 Successful
Usage: TXTR10IR() is used anytime you need to change the
font to Times Roman 10 Italic Roman-8. Times Roman
10 Italic Roman-8 is not one of the internal fonts
for any HP LaserJet Printers. If you have a
cartridge with Times Roman 10 Italic Roman-8 on
it, you can use this function. If you select this
font and it is not available to your printer, the
HP LaserJet will set the font that most closely
matches the selected font's characteristics. You
do not get a return code indicating the font was
not available.
Example: TXTR10IR()
Copyright 1991 - Texas Associated Software - Red Oak, TX 102
TXTR10MA()
Syntax: TXTR10MA()
Purpose: Sets the font to Times Roman 10 point Math Symbol
Set proportional pitch.
Pitch Point Description
Proportional 10.00 Times Roman Medium Math
Argument: None
Returns: 0 Successful
Usage: TXTR10MA() is used anytime you need to change the
font to Times Roman 10 Math. Times Roman 10 Math
is not one of the internal fonts for any HP
LaserJet Printers. If you have a cartridge with
Times Roman 10 Math on it, you can use this
function. If you select this font and it is not
available to your printer, the HP LaserJet will
set the font that most closely matches the
selected font's characteristics. You do not get a
return code indicating the font was not available.
Example: TXTR10MA()
Copyright 1991 - Texas Associated Software - Red Oak, TX 103
TXTR10R()
Syntax: TXTR10R()
Purpose: Sets the font to Times Roman 10 point Roman-8
Symbol Set proportional pitch.
Pitch Point Description
Proportional 10.00 Times Roman Medium Roman-
8
Argument: None
Returns: 0 Successful
Usage: TXTR10R() is used anytime you need to change the
font to Times Roman 10 Roman-8. Times Roman 10
Roman-8 is not one of the internal fonts for any
HP LaserJet Printers. If you have a cartridge with
Times Roman 10 Roman-8 on it, you can use this
function. If you select this font and it is not
available to your printer, the HP LaserJet will
set the font that most closely matches the
selected font's characteristics. You do not get a
return code indicating the font was not available.
Example: TXTR10R()
Copyright 1991 - Texas Associated Software - Red Oak, TX 104
TXTR12BR()
Syntax: TXTR12BR()
Purpose: Sets the font to Times Roman 12 point Bold Roman-8
Symbol Set proportional pitch.
Pitch Point Description
Proportional 12.00 Times Roman Bold Roman-8
Argument: None
Returns: 0 Successful
Usage: TXTR12BR() is used anytime you need to change the
font to Times Roman 12 Bold Roman-8. Times Roman
12 Bold Roman-8 is not one of the internal fonts
for any HP LaserJet Printers. If you have a
cartridge with Times Roman 12 Bold Roman-8 on it,
you can use this function. If you select this font
and it is not available to your printer, the HP
LaserJet will set the font that most closely
matches the selected font's characteristics. You
do not get a return code indicating the font was
not available.
Example: TXTR12BR()
Copyright 1991 - Texas Associated Software - Red Oak, TX 105
TXTR12IR()
Syntax: TXTR12IR()
Purpose: Sets the font to Times Roman 12 point Italic
Roman-8 Symbol Set proportional pitch.
Pitch Point Description
Proportional 12.00 Times Roman Italic Roman-
8
Argument: None
Returns: 0 Successful
Usage: TXTR12IR() is used anytime you need to change the
font to Times Roman 12 Italic Roman-8. Times Roman
12 Italic Roman-8 is not one of the internal fonts
for any HP LaserJet Printers. If you have a
cartridge with Times Roman 12 Italic Roman-8 on
it, you can use this function. If you select this
font and it is not available to your printer, the
HP LaserJet will set the font that most closely
matches the selected font's characteristics. You
do not get a return code indicating the font was
not available.
Example: TXTR12IR()
Copyright 1991 - Texas Associated Software - Red Oak, TX 106
TXTR12R()
Syntax: TXTR12R()
Purpose: Sets the font to Times Roman 12 point Roman-8
Symbol Set proportional pitch.
Pitch Point Description
Proportional 12.00 Times Roman Medium Roman-
8
Argument: None
Returns: 0 Successful
Usage: TXTR12R() is used anytime you need to change the
font to Times Roman 12 Roman-8. Times Roman 12
Roman-8 is not one of the internal fonts for any
HP LaserJet Printers. If you have a cartridge with
Times Roman 12 Roman-8 on it, you can use this
function. If you select this font and it is not
available to your printer, the HP LaserJet will
set the font that most closely matches the
selected font's characteristics. You do not get a
return code indicating the font was not available.
Example: TXTR12R()
Copyright 1991 - Texas Associated Software - Red Oak, TX 107
TXTR14BR()
Syntax: TXTR14BR()
Purpose: Sets the font to Times Roman 14 point Bold Roman-8
Symbol Set proportional pitch.
Pitch Point Description
Proportional 14.00 Times Roman Bold Roman-8
Argument: None
Returns: 0 Successful
Usage: TXTR14BR() is used anytime you need to change the
font to Times Roman 14 Bold Roman-8. Times Roman
14 Bold Roman-8 is not one of the internal fonts
for any HP LaserJet Printers. If you have a
cartridge with Times Roman 14 Bold Roman-8 on it,
you can use this function. If you select this font
and it is not available to your printer, the HP
LaserJet will set the font that most closely
matches the selected font's characteristics. You
do not get a return code indicating the font was
not available.
Example: TXTR14BR()
Copyright 1991 - Texas Associated Software - Red Oak, TX 108
TXTR8MA()
Syntax: TXTR8MA()
Purpose: Sets the font to Times Roman 8 point Math Symbol
Set proportional pitch.
Pitch Point Description
Proportional 8.00 Times Roman Medium Math
Argument: None
Returns: 0 Successful
Usage: TXTR8MA() is used anytime you need to change the
font to Times Roman 8 Math. Times Roman 8 Math is
not one of the internal fonts for any HP LaserJet
Printers. If you have a cartridge with Times Roman
8 Math on it, you can use this function. If you
select this font and it is not available to your
printer, the HP LaserJet will set the font that
most closely matches the selected font's
characteristics. You do not get a return code
indicating the font was not available.
Example: TXTR8MA()
Copyright 1991 - Texas Associated Software - Red Oak, TX 109
TXTR8R()
Syntax: TXTR8R()
Purpose: Sets the font to Times Roman 8 point Roman-8
Symbol Set proportional pitch.
Pitch Point Description
Proportional 8.00 Times Roman Medium Roman-
8
Argument: None
Returns: 0 Successful
Usage: TXTR8R() is used anytime you need to change the
font to Times Roman 8 point Roman-8. Times Roman 8
point Roman-8 is not one of the internal fonts for
any HP LaserJet Printers. If you have a cartridge
with Times Roman 8 point Roman-8 on it, you can
use this function. If you select this font and it
is not available to your printer, the HP LaserJet
will set the font that most closely matches the
selected font's characteristics. You do not get a
return code indicating the font was not available.
Example: TXTR8R()
Copyright 1991 - Texas Associated Software - Red Oak, TX 110
TXUNDERLINE()
Syntax: TXUNDERLINE(<expC1>)
Purpose: Prints a string with a single underline.
Arguments: <expC1> is the string to be printed.
Returns: Underlined string
Usage: TXUNDERLINE() is useful anytime you need to print
a text string underlined.
Example: * To print text in normal print
_text = "I "+txunderline("love")+" HP LaserJets"
TXCOLPRINT(01, 01, .f., _text)
See Also: TXCOLPRINT(), TXDOTPRINT()
Copyright 1991 - Texas Associated Software - Red Oak, TX 111
TXVPRINT()
Syntax: TXVPRINT(<expN1>, <expN2>, <expC1>)
Purpose: Prints a vertical string at the designated row and
column coordinates.
Arguments: <expN1> is the upper row coordinate of text to be
printed.
<expN2> is the upper column coordinate of text to
be printed.
<expC1> is the string to be printed.
Returns: 0 Successful
1 Invalid number of parameters
2 <expN1> column parameter not numeric
3 <expN2> row parameter not numeric
4 <expC1> text string not character
Usage: TXVPRINT() is useful anytime you need to print a
vertical text string using rows and columns as
coordinates.
Example: * To print vertical text
_text = "Texas Associated Software"
TXVPRINT(01, 01, _text)
Copyright 1991 - Texas Associated Software - Red Oak, TX 112
TXXBOX()
Syntax: TXXBOX(<expN1>, <expN2>, <expN3>, <expN4>,
[<expN5>])
Purpose: Prints a single lined box with diagonal lines
crossing from corner to opposite corner using dots
as x and y coordinates. A dot is the smallest
printable unit. One dot equals 1/300th of an inch.
The number of dots printed per inch is referred to
as the printer's resolution. The border thickness
is set by <expN5>.
Arguments: <expN1> is the upper x coordinate of the box.
<expN2> is the upper y coordinate of the box.
<expN3> is the width of the box in dots
<expN4> is the height of the box in dots
<expN5> is the thickness of the border in dots.
Returns: 0 Successful
1 Invalid number of parameters
2 <expN1> x parameter not numeric
3 <expN2> y parameter not numeric
4 <expN3> width parameter not numeric
5 <expN4> height parameter not numeric
6 <expN5> border weight parameter not numeric
Usage: TXXBOX() is useful anytime you need to print a box
that is crossed out using x and y dots as
coordinates.
Example: * To print a x'ed out box
_ret_code = txxbox(1800, 1500, 0450, 0300)
IF _ret_code != 0
set console on
set print off
set device to screen
?? "Error drawing DotBox "+str(_ret_code)
Return
ENDIF
(Your Print Routine)
See Also: TXCOLBOX(), TXDOTBOX()
Printers: All printers
Copyright 1991 - Texas Associated Software - Red Oak, TX 113
Bugs
----
Texas Associated Software wishes to make The Library error free.
However, as realists we know that is not possible 100% of the
time. As we add user suggested functions, we may have to make
changes to existing functions. We have determined it will be
impossible to find all the mistakes in the Library ourselves. It
would be sincerely appreciated if you would take the time to
document any errors or anomalies you find. If you find a "Bug",
it will be fixed and you will be sent a registered copy of the
Library free of charge. If you are already registered, you will
receive a fix and the next available upgrade at no charge. If you
have a suggestion for incorporation in the Library and we can use
it, you will receive an immediate upgrade and the next available
upgrade at no charge.
Please send comments, suggestions, criticisms and bug reports to:
Texas Associated Software
523 La Cresta Drive
Red Oak, TX 75154
(214) 617-5260
Please detail what you were doing and if possible include source
code if possible.
Copyright 1991 - Texas Associated Software - Red Oak, TX 114
Registration Information
------------------------
If you purchased The Texas Associated Laser Printer Library
directly from Texas Associated Software and have received your
product registration number, your copy is already registered you
will receive all the benefits of registration. You need not
register again.
If you received The Texas Associated Laser Printer Library from a
User Group, Bulletin Board, etc. and paid a small fee. You are
not registered. The fee you paid was for the convenience of
obtaining the diskette with the Library on it. The fee does not
apply to registration.
If you received an evaluation copy from Texas Associated Software
for a fee of $5.00, you are not registered. The $5.00 fee you
paid was for the convenience of obtaining the diskette with the
Library on it. However, this $5.00 fee does apply toward your
registration fee and you may deduct it from the $49.95 fee when
you register.
You may register your copy by filling out the registration form
and mailing it to the address listed along with your check or
money order for $49.95 (Texas residents add 7.25% sales tax).
When you register your copy of the Library, you will receive a
Norton Guides reference guide and the latest version of the
Library and documentation. You will be granted a royalty free
run-time license to use The Library in any of your applications.
Copyright 1991 - Texas Associated Software - Red Oak, TX 115
HP LaserJet Internal Fonts
--------------------------
HP LaserJet
Courier 12 point 10 cpi Portrait & Landscape
HP LaserJet 500 / Plus
Courier 12 point 10 cpi Portrait & Landscape
Line Printer 8.5 point 16.67 cpi Portrait
HP LaserJet II
Courier 12 point 10 cpi Portrait & Landscape
Courier Bold 12 point 10 cpi Portrait & Landscape
Line Printer 8.5 point 16.67 cpi Portrait & Landscape
HP LaserJet IID
Courier 12 point 10 cpi Portrait & Landscape
Courier Bold 12 point 10 cpi Portrait & Landscape
Courier Italic 12 point 10 cpi Portrait & Landscape
Courier 10 point 12 cpi Portrait & Landscape
Courier Bold 10 point 12 cpi Portrait & Landscape
Courier Italic 10 point 12 cpi Portrait & Landscape
Line Printer 8.5 point 16.67 cpi Portrait & Landscape
HP LaserJet III
Courier 12 point 10 cpi Portrait & Landscape
Courier Bold 12 point 10 cpi Portrait & Landscape
Courier Italic 12 point 10 cpi Portrait & Landscape
Courier 10 point 12 cpi Portrait & Landscape
Courier Bold 10 point 12 cpi Portrait & Landscape
Courier Italic 10 point 12 cpi Portrait & Landscape
CG Times Scalable Portrait & Landscape
Universal Scalable Portrait & Landscape
Line Printer 8.5 point 16.67 cpi Portrait & Landscape
Copyright 1991 - Texas Associated Software - Red Oak, TX 116
Texas Associated Software Laser Printer Library Registration Form
Please send $49.95 (Texas residents add 6.25% sales tax) check or
money order made payable to Texas Associated Software and mail
to:
Texas Associated Software
523 La Cresta Drive
Red Oak, TX 75154
(214) 617-5260
You will be supporting software distributed under the ShareWare
concept and contributing to the further development of The Texas
Associated Software Laser Printer Library and other ShareWare
programs.
Name ________________________________________________________
Company _____________________________________________________
Title _______________________________________________________
Address _____________________________________________________
City/State __________________________ Zip Code ______________
Phone _________________________________ Ext _________________
User Group __________________________________________________
Where did you get your copy of the Library? _________________
_____________________________________________________________
Total Amount Enclosed (please check one):
Non-Texas Residents:
__ $49.95
__ $44.95 plus copy of receipt of evaluation copy
Texas Residents (includes 6.25% sales tax):
__ $53.07
__ $48.07 plus copy of receipt of evaluation copy
Diskette Format: (check one) ___ 5.25" 360kb
___ 5.25" 1.2Meg
___ 3.5" 720kb
Copyright 1991 - Texas Associated Software - Red Oak, TX 117